Backing up with batch
Hi, I am making a program that I hope will back up some of my important document. I decided to use batch but I am having a problem. The program that is meant to back up everything from my documents on will only take the files within my documents and not any of the folders within it. This is the program that I used: and comments or reasons why this is happening would help..
xcopy "C:\documents and settings\%username%\my documents" "C:\documents and settings\%username%\hacked" pause cls pause
This is what I used for reference:
http://www.google.com/search?hl=en&q=copy+files+and+directories+DOS&btnG=Google+Search
… and you can use it yourself to understand the syntax of the command you're trying to use.
GOT IT!!
it worked just fine now. I actually googled a little bit and found this site
http://commandwindows.com/xcopy.htm
it gives all the switches and tells you what they do. Thanks a lot for your help