Ahhh, now i understand!
gonna put that new script in...now i know forever if there's any space use Quotes ""
And i'm gonna try it right now...hold on.
Originally Posted by Mindweaver
You got a few errors in line copy . c:\%USERPROFILE%\My Documents d:\Backups\My Documents
. The first one is copy
needs to be xcopy
and you need to remove the "." and you don't need to put the drive letter in front of Variable %USERPROFILE%
. The other 2 errors are the spaces in both My Documents
. When ever you refer to a folder that has spaces in the name you need to add "". Example : xcopy "%USERPROFILE%\My Documents" "d:\Backups\My Documents"
Copy and replace what you have in your batch file with this.
echo Press Any Key to continue backup!
xcopy /s /i d:\backups\Mozilla c:\mozillaback
xcopy /s /c /d /e /h /i /r /k /y "%USERPROFILE%\My Documents" "d:\Backups\My Documents"
echo Backup has now finished!