ForumsProgramming ForumHelp with batch file programming

8 5610
AncLEoniX
offline
AncLEoniX
1 posts
Nomad

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

  • 8 Replies
Darkroot
offline
Darkroot
2,763 posts
Peasant

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
842 posts
Nomad

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
948 posts
Nomad

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

master565
offline
master565
4,107 posts
Nomad

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
948 posts
Nomad

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

Secretmapper
offline
Secretmapper
1,748 posts
Nomad

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
Peasant

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

Somewhat49
offline
Somewhat49
1,607 posts
Nomad

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