Introduction: VBS - Self Writing Shutdown
this is a cool script that I put together in like 5 mins so here it is .. also please comment ty =] ...
what this script does is it opens cmd, then types 'shutdown -s -f -t 10' ten in makes the computer press enter! it's cool because it looks like the pc has taken control and is shutting down your pc!
please enjoy and comment..
tell me of any bugs or Admin rights.
what this script does is it opens cmd, then types 'shutdown -s -f -t 10' ten in makes the computer press enter! it's cool because it looks like the pc has taken control and is shutting down your pc!
please enjoy and comment..
tell me of any bugs or Admin rights.
Step 1: How It Works
all this script uses is:
set shellobj = CreateObject("WScript.Shell") :this makes an object .. for later.
shellobj.run "cmd" :this is using the object we have just made and using it to run cmd.
wscript.sleep 2000 :this make it sleep .. here it sleeps for 2000 minisecs ..i think could be smaller.
shellobj.sendkeys "s" : this uses the object to make it type something here it would type the letter 's'.
the code is attached.
!!!!!!!! make sure you name it .vbs not .itsavbs !!!!!!!!!!
hope you like it please comment on it =]
set shellobj = CreateObject("WScript.Shell") :this makes an object .. for later.
shellobj.run "cmd" :this is using the object we have just made and using it to run cmd.
wscript.sleep 2000 :this make it sleep .. here it sleeps for 2000 minisecs ..i think could be smaller.
shellobj.sendkeys "s" : this uses the object to make it type something here it would type the letter 's'.
the code is attached.
!!!!!!!! make sure you name it .vbs not .itsavbs !!!!!!!!!!
hope you like it please comment on it =]