Using batch codes

May 5, 2009 at 5:50am
So I am looking for a simple way to make a c++ program, but using batch code as well. Simply put, I'm off school for the summer, and I am trying to keep myself busy while still learning as much as I can with c++. I made a batch file that copies some of my files to an external hard drive for updates. I want to now make a c++ code that will do the same thing. My batch code looks like this.

robocopy C:\Users\Music G:\Music /E /LOG+:G:/LOG.txt /NDL
robocopy C:\Users\Pictures G:\Pictures /E /LOG+:G:/LOG.txt /NDL
pause

Does anyone have a simple way to do this?
May 5, 2009 at 11:55am
which platform you are working on and which compiler/IDE you are planning to use for C++?
May 5, 2009 at 5:44pm
I am just using Visual Studios 2008 making a win32 app
May 5, 2009 at 5:50pm
The Windows Platform API has a CopyFile function. Directories are traversed with FindFirstFile/FindNextFile/FindClose. You can create a directory with CreateDirectory.
Topic archived. No new replies allowed.