Page 1 of 1

no shutdown when running from a batch file

Posted: Wed Feb 17, 2010 10:14 am
by Scott_Willcox
I have created a batch file that backups two partitions. After the second partitions is backup up, the PC is supposed to shutdown. I have achieved this by creating two scripts with the R-Drive image software and saving them. They are then consecutively called in the batch script.

Unfortunately the PC does not shutdown after the second script, although when I use the R-Drive image software and mannually run the script the computer will shutdown.

The the batch file is as follows:
"C:\Program Files\RDI\scripts\BackupC.rdi"
"C:\Program Files\RDI\scripts\BackupD.rdi"

the scripts are:
create /a /o -s="1:2" -a="<serverpath>\BackupC.arc" -c=0 -u -s-n -ms="*******" -ma="********" -mr="*****" -mx -me
create /a /o /off -s="1:3" -a="<serverpath>\BackupD.arc" -c=0 -u -s-n -ms="*****" -ma="scott@*****" -mr="*****" -mx -me

Re: no shutdown when running from a batch file

Posted: Thu Feb 18, 2010 6:35 am
by Alt
I think you can combine the commands from the two scripts into one, say, BackupCD.rdi:
create /a /o -s="1:2" -a="<serverpath>\BackupC.arc" -c=0 -u -s-n -ms="*******" -ma="********" -mr="*****" -mx -me
create /a /o /off -s="1:3" -a="<serverpath>\BackupD.arc" -c=0 -u -s-n -ms="*****" -ma="scott@*****" -mr="*****" -mx -me
and run it instead of the batch file.