View Single Post
Old Nov 16, 2012, 08:29 PM   #11
GraveFiller
75 Posts
 
GraveFiller's Avatar
 
Join Date: Dec 2006
Location: hollywood, fla.
Posts: 149 (0.06/day)
Thanks: 11
Thanked 4 Times in 4 Posts

System Specs

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.

Quote:
Originally Posted by Mindweaver View Post
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.
Code:
@echo off
cls
echo Press Any Key to continue backup!
pause
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!
__________________
Check out the Rig:
http://forums.techpowerup.com/showthread.php?p=440895
GraveFiller is offline  
Reply With Quote