Raiden1803
New member
- Local time
- 11:04 AM
- Messages
- 3
Hello all. newbie here.
strange problem with xcopy.. started happening only with this specific batch file i wrote to back files up to my network drive. Basically i'm backing three local drives "I: (thumb drive) C: and E: To my network drive. X: (which is a seagate goflex home if that means anything..)
with this specific batch file i cannot seem to copy anything local to my network drive. instead i get a "invalid path" error message. this is my script.
to make matters even more weirder i have another script that i use to backup my itunes library to my network drive, which oddly enough works just fine.
I'm not sure what im missing here, the "network drive backup and restore script" worked fine once. and now, not so much.
if anyone has any ideas on whats going wrong with my first script, i'd appreciate it.
thanks,
strange problem with xcopy.. started happening only with this specific batch file i wrote to back files up to my network drive. Basically i'm backing three local drives "I: (thumb drive) C: and E: To my network drive. X: (which is a seagate goflex home if that means anything..)
with this specific batch file i cannot seem to copy anything local to my network drive. instead i get a "invalid path" error message. this is my script.
Code:
@echo off
:restart
echo NETWORK DRIVE BACKUP AND RESTORE SCRIPT.
echo Would You like to backup, or load?
set input=
set /p input=load,backup, or exit?
if %input%==load goto load
if %input%==backup goto backup
if %input%==exit goto exit
echo not a valid input
goto restart
:backup
xcopy "I:\*.*" "X:\Thumb drive" /E /T /I /Y /D:5-15-2012
xcopy "C:\Users\Dwight Sarmiento\My Documents\" "X:\Documents" /E /T /I /Y /D:5-15-2012
xcopy "C:\Users\Dwight Sarmiento\AppData\Roaming\.minecraft\saves" "X:\Saved Game Files\Minecraft" /E /T /I /Y /D:5-15-2012
xcopy "C:\Users\Dwight Sarmiento\My Documents\My Games\Skyrim" "X:\Saved Game Files\Skyrim" /E /T /I /Y /D:5-15-2012
xcopy "C:\Users\Dwight Sarmiento\My Documents\Square Enix\Batman Arkham Asylum GOTY" "X:\Saved Game Files\Batman Arkham Asylum GOTY" /E /T /I /Y /D:5-15-2012
xcopy "C:\Users\Dwight Sarmiento\AppData\Local\Microsoft\GFWLive" "X:\Saved Game Files\Batman Arkham Asylum GOTY\GFWLive" /E /T /I /Y /D:5-15-2012
xcopy "C:\Users\Dwight Sarmiento\AppData\Local\Microsoft\Xlive" "X:\Saved Game Files\Batman Arkham Asylum GOTY\Xlive" /E /T /I /Y /D:5-15-2012
xcopy "C:\Users\Dwight Sarmiento\Appdata\Local\SWTOR\" "X:\swtor" /E /T /I /Y /D:5-15-2012
xcopy "E:\Backgrounds" "X:\Backgrounds" /E /T /I /Y /D:5-15-2012
Xcopy "E:\Applications" "X:\Applications" /E /T /I /Y /D:5-15-2012
xcopy "E:\Iphone" "X:\Iphone" /E /T /I /Y /D:5-15-2012
echo Files Successfully Copied
pause
exit
:load
Xcopy "X:\Thumb Drive" "I:\*.*" /E /I /Y
xcopy "X:\Saved Game Files\Minecraft" "C:\Users\Dwight Sarmiento\AppData\Roaming\.minecraft\saves" /E /I /Y
xcopy "x:\Saved Game Files\Skyrim" "C:\Users\Dwight Sarmiento\My Documents\My Games\Skyrim" /E /I /Y
xcopy "X:\Saved Game Files\Batman Arkham Asylum GOTY" "C:\Users\Dwight Sarmiento\My Documents\Square Enix\Batman Arkham Asylum GOTY" /E /I /Y
xcopy "X:\Saved Game Files\Batman Arkham Asylum GOTY\GFWLive" "C:\Users\Dwight Sarmiento\AppData\Local\Microsoft\GFWLive" /E /I /Y
xcopy "X:\Saved Game Files\Batman Arkham Asylum GOTY\Xlive" "C:\Users\Dwight Sarmiento\AppData\Local\Microsoft\Xlive" /E /I /Y
xcopy "I:\swtor" "C:\Users\Dwight Sarmiento\Appdata\Local\SWTOR\" /E /I /Y
xcopy "X:\Backgrounds" "E:\Backgrounds" /E /I /Y
Xcopy "X:\Applications" "E:\Applications" /E /I /Y
xcopy "X:\Iphone" "E:\Iphone" /E /I /Y
echo Files Successfully Loaded
pause
exit
:exit
exit
to make matters even more weirder i have another script that i use to backup my itunes library to my network drive, which oddly enough works just fine.
Code:
@echo off
:restart
echo ITUNES LIBRARY BACKUP AND RESTORE SCRIPT
echo would you like to backup, or load?
set input=
set /p input=load,backup, or exit?
if %input%==load goto load
if %input%==backup goto backup
if %input%==exit goto exit
echo not a valid input
goto restart
:backup
xcopy "E:\Itunes Library" "X:\Itunes Library" /E /Y
echo files Successfully Copied
pause
exit
:load
xcopy "X:\Itunes Library" "E:\Itunes Library" /E /Y /D:5-15-2012
echo files Successfully Loaded
pause
exit
:exit
exit
I'm not sure what im missing here, the "network drive backup and restore script" worked fine once. and now, not so much.
if anyone has any ideas on whats going wrong with my first script, i'd appreciate it.
thanks,
My Computer
- OS
- Windows 7