ForumsProgramming ForumHelp with batch file programming

8 2902
AncLEoniX
offline
AncLEoniX
1 posts
0

Does anyone know how to create a batch file message and shutdown of a computer?

  • 8 Replies
Darkroot
offline
Darkroot
2,877 posts
710

Use google it's your best friend. Only post when you want to discuss something or you really did try and look for an answer and couldn't.

Microe
offline
Microe
864 posts
0

Well open up a text file. Look up a google batch code like...

shutdown -s -t 30 -c

then save the document as a .bat file

When someone clicks it....poof.

Dannydaninja
offline
Dannydaninja
976 posts
20

So Microe, if someone posted a link to the file on this very topic, there computer would just shut down?

master565
offline
master565
4,239 posts
190

So Microe, if someone posted a link to the file on this very topic, there computer would just shut down?


Only if they download and open it i think.
Dannydaninja
offline
Dannydaninja
976 posts
20

Oh good. I hate it when those cheeky yet smart hackers stuff up my computer.

Secretmapper
offline
Secretmapper
1,780 posts
210

Only if they download and open it i think.


Yes, I can confirm this. Still, try putting it in the startup folder. That way, it'll automatically run everytime you open the computer. (won't work on safe mode though)
Llamasushi
offline
Llamasushi
104 posts
825

If you want to stop the shutdown...go to control panel and type shutdown -a :P

Somewhat49
offline
Somewhat49
1,668 posts
300

Oh good. I hate it when those cheeky yet smart hackers stuff up my computer.

They could always set it so when you download the web page, the .bat downloads with it, and when you open to read the page, the .bat opens with it.
Showing 1-8 of 8