Help with a .bat file

Eastonator12

Well-Known Member
OP
Member
Joined
Aug 16, 2016
Messages
630
Trophies
0
Age
21
XP
959
Country
United States
Hello there, I am trying to make a .bat file to prank my friend. I want the batch file to open cmd and execute a command, but everything i'm trying doesn't work. I want it to run the command: shutdown -s -t 1925000 -c “System error: overloaded porn folder”. Thanks
 

Slattz

Easygoing Fairy
Member
Joined
Nov 21, 2015
Messages
1,258
Trophies
1
XP
1,692
Country
Ireland
Also, you set the time to 1925000 seconds, you might want to edit the bat and change it to around 3 or something.
 

Eastonator12

Well-Known Member
OP
Member
Joined
Aug 16, 2016
Messages
630
Trophies
0
Age
21
XP
959
Country
United States
Also, you set the time to 1925000 seconds, you might want to edit the bat and change it to around 3 or something.
I did that because I didn't want to actually shut off his computer or anything like that, so it would give me enough time to cancel it. BTW, the .bat you gave me just opens cmd and sits on a blinking underscore in the top corner with no text...nothing happens
 

Slattz

Easygoing Fairy
Member
Joined
Nov 21, 2015
Messages
1,258
Trophies
1
XP
1,692
Country
Ireland
I did that because I didn't want to actually shut off his computer or anything like that, so it would give me enough time to cancel it. BTW, the .bat you gave me just opens cmd and sits on a blinking underscore in the top corner with no text...nothing happens
Yea, I just tested, it seems the command can only be run from cmd (on W10 anyway), which is kinda odd.
If you want, I could write a vbs script that opens cmd and autotypes the command and executes it?
 

Eastonator12

Well-Known Member
OP
Member
Joined
Aug 16, 2016
Messages
630
Trophies
0
Age
21
XP
959
Country
United States
Yea, I just tested, it seems the command can only be run from cmd (on W10 anyway), which is kinda odd.
If you want, I could write a vbs script that opens cmd and autotypes the command and executes it?
that would be greatly appreciated, thank you
 

Slattz

Easygoing Fairy
Member
Joined
Nov 21, 2015
Messages
1,258
Trophies
1
XP
1,692
Country
Ireland
@Eastonator12 Heres a vbs script, it hides the cmd window (even though it only runs for a few milliseconds :P ).
I set the time to 5 seconds so the person has a chance to read the shutdown message lol.
Enjoy!

--------------------- MERGED ---------------------------

Here you go, details above :)
 

Attachments

  • Auto-Shutdown.zip
    307 bytes · Views: 102
Last edited by Slattz,

Eastonator12

Well-Known Member
OP
Member
Joined
Aug 16, 2016
Messages
630
Trophies
0
Age
21
XP
959
Country
United States
@Eastonator12 Heres a vbs script, it hides the cmd window (even though it only runs for a few milliseconds :P ).
I set the time to 5 seconds so the person has a chance to read the shutdown message lol.
Enjoy!

--------------------- MERGED ---------------------------

Here you go, details above :)
Thank you for this, is there any way I can change the icon to a folder icon?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    kenenthk @ kenenthk: https://youtu.be/pnPvi4MjgKI