Prologue – If i append PATH environment variable in windows with Installation Directory path of my application, i don’t need to CD to installation directory to execute it.
Question – Would relative file path(s) in my application interpreted according to current execution path in console or according to installation directory. Strangely, in my application, the paths are being interpreted relative to current execution path, thus causing exceptions (File not found, etc).
Please help me out.
Relative paths will be interpreted relative to
Environment.CurrentDirectory.It will default to the directory where the process started in, but can be changed.