working directory constantly changing?
That will work sometimes, but not if I use ..\ (not a problem, but it would be nice to have). I''d like to know why this happens, AFAIK, most people don''t have this problem.
Because most people will simply getmodulefilename once and build full paths from there. The safest method ever.
If you insist on having ..\ you could always use a path class that will concatenate strings for you to build a qualified path string from that.
If you insist on having ..\ you could always use a path class that will concatenate strings for you to build a qualified path string from that.
Using ..\ in a path is allowed, so just copying the apps path before the filename should work.
"C:\windows\..\autoexec.bat" for example will refer to "C:\autoexec.bat", and the conversion will be handled by the OS
"C:\windows\..\autoexec.bat" for example will refer to "C:\autoexec.bat", and the conversion will be handled by the OS
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement