working directory constantly changing?

Started by
11 comments, last by billybob 20 years, 3 months ago
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.
Advertisement
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.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

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
"Walk not the trodden path, for it has borne it's burden." -John, Flying Monk

This topic is closed to new replies.

Advertisement