String path navigation help?

To get the local folder i usually just use Application.ExecutablePath + "\\..\\"; but to be honest I really don't know how path navigation works very well, I've looked for some tutorials on it but never can seem to find any good ones.

For example to go up one folder is it just a "." or is it ".." or does it only need one dot to exit out of the current file name? or does it need a backslash at the beginning or is that for something else? forward slash? what about the end? if there are no slashes at the end does it add it automatically when you specify a file in that directory? etc.

by Soundless_Pr via /r/csharp

Leave a Reply