How to change current directory in c++

I am using VC++, and need to run an exe file in another directory A. I assume i need to change my directory to directory A to run the exe. Since this exe reads and output data from its folder A.

So, my problem is how can i change the directory to A in C++? Thanks,
The CreateProcess() function allows you to specify the working directory of the new process.
http://www.google.com/search?btnI=1&q=msdn+CreateProcess

Good luck!
Topic archived. No new replies allowed.