How can I set the current drive in c++? I was unable to find anything on the MSDN site
The string you use to set the directory can be prefixed by the drive letter -- i.e., "c:\program files".
Directories are set relative to your programs current working directory. If you start your program from 'X' drive you will not be able to move outside of 'X' using relative conventions/directory addressing. You need to use a directory string prefixed with the correct drive letter.