|
Answer» i need help, my backup batch file doesn't backup. I have it copy my DOCUMENTS to a FOLDER and then it ask me where to BACK it up. when i select E:\(DVD Burner) it said location not found or something and when i choose F:\(Flash Drive) its the samething. I got Vista. heres my code. Code: [Select]@echo off title Backup Files to Temporary Location echo Gathering files....... echo Please wait. copy C:\Users\Owner\Documents "C:\Users\Owner\Documents\backupstore\" /V /Y cls echo. ECHO 1.Burn to CD ECHO 2.Move to Flash Drive(:G) set dir= set /p dir=Choose a Directory if '%dir%'=='1' goto Burner if '%dir%'=='2' goto Flash Drive ECHO "%choice%" Invalid Directory ECHO. :Burner title Burning Backup DISC.... echo Moving Backup Data to CD Burner... copy C:\Users\Documents\backupstore\ E:\ goto end :Flash Drive title Backing up file to Flash Drive echo Moving Backup Data to Flash Drive copy C:\Users\Documents\backupstore\ "G:\Documents\Backup\" /V /Y end :end ECHO Backup completed! pause exitLet me just clear up the code first
Code: [Select]:1 @echo off title Backing Files to Temporary Location echo Gathering files.......... echo Please wait. md "C:\Users\Owner\Documents\Backupstore" copy "C:\Users\owner\documents" "C:\Users\Owner\Documents\Backupstore" /v /y cls echo. echo. 1.Burn to CD echo. 2.Move to Flash Drive (g:\) set /p dir= Choose a Directory: if /i %dir%==1 goto :burner if /i %dir%==2 goto :flash cls echo. echo Please choose 1 or 2 and press Enter pause > nul goto :1 :burner cls title Burning Backup Disc..... echo Moving backup data to Cd burner..... copy "C:\Users\Documents\backupstore" "E:\" goto :end :flash cls title Backing up files to Flash Drive echo. Moving backup data to flash drive md "G:\Documents\Backup" copy "C:\Users\Documents\backupstore" "G:\Documents\Backup" /V /Y goto :end :end echo. echo. Backup completed! echo. pause exit Try that. I don't know vista well but that should/might work. If it doesn't work, try getting rid of the '/V /Y' from the copy command.Is it actually possible to burn a disc just by using the copy command? Just wondering because I don't know the ANSWER my self... Quote from: Carbon Dudeoxide on August 03, 2007, 03:20:05 AM Code: [Select]title Burning Backup Disc..... echo Moving backup data to Cd burner..... copy "C:\Users\Documents\backupstore" "E:\" goto :end
Unless the burning program has a command-line utility it is impossible. What he is doing there is copying the files to the temporary folder, ready to be burned.Carbon, your right, thats exactly what im doing but i need the copy to work after.What do you mean? Which copy?
|