Countdown script in Batch file
Restart Computer Example:
for /L %%a in (
15,-1,0
) do (
echo Your Computer will reboot in %%a seconds…
ping -n 2 localhost 1>nul 2>nul
)
@echo off
shutdown -r -t 0
PAUSE
Restart Computer Example:
for /L %%a in (
15,-1,0
) do (
echo Your Computer will reboot in %%a seconds…
ping -n 2 localhost 1>nul 2>nul
)
@echo off
shutdown -r -t 0
PAUSE
Open Notepad and enter the following:
Set ws = CreateObject("Wscript.shell")ws.run "your.bat",vbhide
Then save as a vbs file "your.vbs"