Batch file shutdown while still at login screen
Posted on 2004-03-28
I have a scheduled backup file that runs everynight as an unattended program that starts whithout loging into the system. My problem is that after the backup I wish to shutdown the computer but the command below will not log off unless I am totally logged on as an account.
Is there a way to add a shutdown command to a batch file that will shut down the computer without being logged on?
What I have that does not work is:
if %DayofWeek%==Sun (
echo Sunday Backup
cd "c:\Program Files\stomp\backup MyPC"
start /wait bewin32.exe /Start SundayDiff
start /wait bewin32.exe /Start Sunday_EFGFull
call shutdown.exe -s -t 00 -c "Shutting Down NOW"