Lloyd45
06-19-2004, 03:01 AM
OK, about a month back I lost all my data on my hard drive due to an error, and after scare the other day, even though it was fine, I decided that I will take a hard drive out of my other old PC (which has two HDDs) and place it in my new one, and every day/week or so back it up onto it automatically...
I found a post on the forums hoswing the code to make a batch file to do so, but if I run it from the WinRAR folder as stated backing up files from HDD C:/ to HDD G:/ when it gets to the winRAR part of the operation, it just seems to close and go away - ending up not backing up anything, but, if I back up from a folder on C:/ to another folder on C:/ it works perfectly
Heres the code Im using:
XCOPY "C:\Documents and settings\kunwar\My Documents\USB BACK UP" "G:\Backup\SMCS" /y/i/s
RMDIR "G:\Backup" /s/q
winrar a -r -M5 -MD4096 -Y -O+ -PMIKE -EP -ac -vn -ep1 -agDD-MMM-YY -df "G:\backup.rar" "G:\Backup"
Thanks for any help
I found a post on the forums hoswing the code to make a batch file to do so, but if I run it from the WinRAR folder as stated backing up files from HDD C:/ to HDD G:/ when it gets to the winRAR part of the operation, it just seems to close and go away - ending up not backing up anything, but, if I back up from a folder on C:/ to another folder on C:/ it works perfectly
Heres the code Im using:
XCOPY "C:\Documents and settings\kunwar\My Documents\USB BACK UP" "G:\Backup\SMCS" /y/i/s
RMDIR "G:\Backup" /s/q
winrar a -r -M5 -MD4096 -Y -O+ -PMIKE -EP -ac -vn -ep1 -agDD-MMM-YY -df "G:\backup.rar" "G:\Backup"
Thanks for any help