Elvis Woo

To whom be glory forever and ever. Amen.

Skip to: Content | Sidebar | Footer



Month: February, 2010

Countdown script in Batch file

10 February, 2010 (17:58) | Windows

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

Hide CMD Window when running a batch file

10 February, 2010 (17:53) | Windows

Open Notepad and enter the following:
Set ws = CreateObject("Wscript.shell")ws.run "your.bat",vbhide
Then save as a vbs file "your.vbs"