Guaranteeing a switch to C:\

closed account (4Gb4jE8b)
Currently I'm just using chdir("..\..\..\..\..\..\..\..\") for awhile to try and guarantee a switch to the highest directory... but obviously this doesn't actually guarantee it, Is there any way to do this? Yes windows specific is alright.
Windows specific: SetCurrentDirectory(_T("C:/"));
closed account (4Gb4jE8b)
thank you. Now i doubt there is, but i must ask anyway: is there anyway to guarantee a switch to the highest level in the current directory without OS specific uses?

Edit: Where is this defined, windows.h?
Last edited on
You can always use 3rd party libs for that.

In particular, I know boost can do it.

EDIT: yes that's in Windows.h
Last edited on
closed account (4Gb4jE8b)
Thanks again.
Topic archived. No new replies allowed.