Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
10-21-2008, 01:06 AM #1
- Join Date
- Oct 2008
- Thanked 0 Times in 0 Posts
moving between folders (boost::filesystem)
I am trying to "move" from folder to folder. (like: set def ... or cd ..)
i need a short program (c++) using boost::filesystem to do it (if possible)
how can i do it if it's not possible using: boost::filesystem
10-21-2008, 06:13 AM #2
boost::filesystem doesn't offer this, it just expects you to pass a path object for the directory you want to use (but doesn't actually change the working directory to it).
You'll have to go to the native API.
Windows has SetCurrentDirectory from Windows.h.
Posix (everything else) has chdir() from <unistd.h>