1.

Solve : back up with batch?

Answer»

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
pauseYou may need some switches for the XCOPY UTILITY:

Code: [Select]xcopy /s /e /h "C:\documents and settings\%username%\my documents" "C:\documents and settings\%username%\hacked"
pause
cls
pause

Run XCOPY /? from the command prompt. There is a whole alphabet soup of switches to choose from.



Discussion

No Comment Found