Ranking
Original Post
Auto shutdown code for .exe
What is the auto shutdown code for a .exe?
I thought it was
C:\Windows\System32\shutdown.exe -s
But it's not working.
Belt: 9th Dan BlackBelt
Clan: Jolly Roger
Lie to me and tell me this isn't for malicious purposes.
Pope of BnW[Torigod]Lord of WibblesYouTubeToriblog AdminInterface Artist
(,,゚Д゚) -"Become a fan. DO IT."


Hyperboloids of wondrous Light
Rolling for aye through Space and Time
Harbour those Waves which somehow Might
Play out God's holy pantomime

Also, Gubbin is neat.

[SIGPIC][/SIGPIC]
Actually no, it isn't. I was wanting to make a .exe that when ran it would shut down the computers running on my network (3) from one computer. But since I don't know the program code for it, it cant go very far.
Belt: 9th Dan BlackBelt
Clan: Jolly Roger
Ok. I just don't know any other coding other than cmd and VBS. But ill look into it.
Belt: 9th Dan BlackBelt
Clan: Jolly Roger
It's quite simple, make a file, anywhere, name it 'test.bat', then input that code:
shutdown -s -f -t0

-t0 = no time delay, you can mess with this to add a time delay. -t20 = 20 secconds
-c = comment, -c"This is a message you will see on shutdown"
-s = shutdown
-f = forced
-a = abort

You can easaly do this with notepad, check the attached file for more info.
Attached Files
test.zip (145 Bytes, 11 views)
Last edited by Vox; Jul 2, 2010 at 08:41 AM.
Man this topic was a lot less exciting than I wanted it to be. :c
Pope of BnW[Torigod]Lord of WibblesYouTubeToriblog AdminInterface Artist
(,,゚Д゚) -"Become a fan. DO IT."


Hyperboloids of wondrous Light
Rolling for aye through Space and Time
Harbour those Waves which somehow Might
Play out God's holy pantomime

Also, Gubbin is neat.

[SIGPIC][/SIGPIC]
If you want to be able to shutdown any computer on a network (like at school) simply make a bat file with shutdown -i and then enter the IP of your computer. This will give you control over the shutdown command on your network and you'll be a 1337 h4x0r