Help with a .bat file

Eastonator12

Well-Known Member
OP
Member
Joined
Aug 16, 2016
Messages
630
Trophies
0
Age
23
XP
999
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,259
Trophies
1
XP
1,787
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
23
XP
999
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,259
Trophies
1
XP
1,787
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
23
XP
999
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,259
Trophies
1
XP
1,787
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: 160
Last edited by Slattz,

Eastonator12

Well-Known Member
OP
Member
Joined
Aug 16, 2016
Messages
630
Trophies
0
Age
23
XP
999
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?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Julie_Pilgrim @ Julie_Pilgrim:
    the internet
  • Julie_Pilgrim @ Julie_Pilgrim:
    @Psionic Roshambo i have 16 gb in my pc and i run into issues with ram more than i'd like to admit
  • HiradeGirl @ HiradeGirl:
    I got only 8GB of RAM. But I want 32GB.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Time to just download more ram
  • K3Nv2 @ K3Nv2:
    Yeah search Google
  • Sonic Angel Knight @ Sonic Angel Knight:
    Or, I also heard that if you use flash memory, it can act as more "RAM" at least windows tell me when I stick a flash drive into it.
  • Veho @ Veho:
    It can act as a swap drive but that isn't more RAM, it's slooow.
  • K3Nv2 @ K3Nv2:
    I wish we could have 1Gbps external storage by now
  • K3Nv2 @ K3Nv2:
    Like for micro
  • Veho @ Veho:
    New Myoo.
  • SylverReZ @ SylverReZ:
    @Veho, Yooo noice
  • SylverReZ @ SylverReZ:
    Looks like a Famicom handheld
  • Veho @ Veho:
    Yeah, they were going for that.
  • Veho @ Veho:
    It's not very good though.
  • Veho @ Veho:
    I'm watching the review, the emulators it uses suck bawls.
  • Veho @ Veho:
    Software update might improve it.
  • Psionic Roshambo @ Psionic Roshambo:
    Or maybe someone will make like Emulation Station for it or something?
  • Veho @ Veho:
    That counts as a software update :tpi:
  • OctoAori20 @ OctoAori20:
    Ello
  • K3Nv2 @ K3Nv2:
    I can think of the design teams process another joystick and no audio or a joystick and mono audio
  • Veho @ Veho:
    "You think we can just put the speakers at the top
    ?" "NO!"
  • K3Nv2 @ K3Nv2:
    Pft stereo speakers you're fired
    K3Nv2 @ K3Nv2: Pft stereo speakers you're fired