27 Mar 2008 10:03
XCOPY exclude problem
This is a bactch file I want to use for backing up: --------------------------------------------------------------------- backup.cmd SET COMMAND=XCOPY /D /E /C /I /H /R /Y /EXCLUDE:"MyExcludes.txt" SET RPATH="C:\Documents and Settings\user\Desktop\copy1" SET LPATH="C:\Documents and Settings\user\Desktop\copy2" %COMMAND% %RPATH% %LPATH% pause --------------------------------------------------------------------- This is the contents of MyExcludes.txt file "C:\Documents and Settings\user\Desktop\copy1\excludedfolder" --------------------------------------------------------------------- And this is the result: C:\Documents and Settings\user\Desktop>SET COMMAND=XCOPY /D /E /C /I /H /R /Y /E XCLUDE:"MyExcludes.txt" C:\Documents and Settings\user\Desktop>SET RPATH="C:\Documents and Settings\user \Desktop\copy1" C:\Documents and Settings\user\Desktop>SET LPATH="C:\Documents and Settings\user \Desktop\copy2" C:\Documents and Settings\user\Desktop>XCOPY /D /E /C /I /H /R /Y /EXCLUDE:"MyEx cludes.txt" "C:\Documents and Settings\user\Desktop\copy1" "C:\Documents and Set(Continue reading)
RSS Feed