Forums

ForumsProgramming Forum

Help with batch file programming

Posted Apr 27, '11 at 5:21pm

AncLEoniX

AncLEoniX

1 post

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

 

Posted Apr 27, '11 at 10:07pm

Darkroot

Darkroot

2,879 posts

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.

 

Posted Apr 27, '11 at 10:22pm

Microe

Microe

871 posts

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.

 

Posted Apr 29, '11 at 10:05am

Dannydaninja

Dannydaninja

980 posts

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

 

Posted Apr 29, '11 at 10:06am

master565

master565

4,288 posts

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.
 

Posted Apr 29, '11 at 10:18am

Dannydaninja

Dannydaninja

980 posts

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

 

Posted May 5, '11 at 11:57am

Secretmapper

Secretmapper

1,783 posts

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)
 

Posted Nov 3, '11 at 4:41am

Llamasushi

Llamasushi

104 posts

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

 

Posted Nov 13, '11 at 11:33am

Somewhat49

Somewhat49

1,669 posts

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.
 
Reply to Help with batch file programming

You must be logged in to post a reply!