ForumsProgramming ForumHelp with batch file programming

8 3029
AncLEoniX
offline
AncLEoniX
1 posts
10

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

  • 8 Replies
Darkroot
offline
Darkroot
2,779 posts
1,120

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
844 posts
160

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
953 posts
230

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

master565
offline
master565
4,125 posts
600

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
953 posts
230

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

Secretmapper
offline
Secretmapper
1,753 posts
380

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
102 posts
865

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

Somewhat49
offline
Somewhat49
1,632 posts
435

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