I'm trying to shutdown the computer using a BAT file on windows 7 and was wondering if anyone knew how to do it. Here's what I got so far (it doesn't work). Thanks in advance
@echo off
:W
if %time% == 08:53:00 goto :Y
if %time% == 08:54:00 goto :X
goto :W
:Y
taskkill /f /IM "iexplore.exe"
:X
shutdown.exe /s /f /t 60 /c " Sleeeeeeeep "
Any reason you want a .bat file? You can use powershell on Windows 7. Run this in the command prompt and there is no script file to worry about, just a scheduled task like @Andrew mentioned: