Showing posts with label shutdown. Show all posts
Showing posts with label shutdown. Show all posts

Friday, 19 December 2014

The Ultimate Prank

Posted By: Jeet Patel


                            This article is going to be quite interesting to read as well as to execute it. Have you ever written a bunch of code to shutdown computer machine of others? Isn’t this cool to do? Don’t worry you don’t need to be a hardcore programmer or a hacker to do so, you just need to be able to work with notepad YEAH THAT’S ALL!!!!! To do this thing we are going to need help of the BATCH file. I hope you all know what a batch file is. If not then, a BATCH file has an extension of “.bat” in Windows and DOS and in Windows  NT and OS/2 the extension is “.cmd”. In the BATCH file you just need to write a series of code that can be executed with the interpretation of the command prompt. A BATCH file code can consist of for loops, goto statements, if conditions and several types of labels, after writing the code you need to save the file with the “.bat” extension as I said earlier (depending on which platform you are working according the extension will be there). So now that you are knowing that what a BATCH file is, let us get into the main topic. We are going to discuss about how can you shutdown or restart computers using the BATCH files.

Step 1:
                Open notepad, as you all know that notepad is as dangerous as it looks simple. Type in the                   below code in notepad.

@echo off
shutdown -s -t 60 -c "Hello"

let us understand the above code.

-s            shutdown
-r             means Restart. If you want to computer to get restart after the execution of this BATCH                       file,      than you need to write –r instead of –s.
-t             after –t you need to write 30 or 40 or 50
-c            means COMMENTS. You can write anything after –c in  “ “ EG: “ You are ruined” or            anything like this.

Step 2:
                Save the file with “.bat” without concern about the name of file. Copy the file, take it to someone else’s machine and try to execute it.
Step 3:
                After executing the file, command prompt will pop up and shutdown or restart countdown gets started. If you wish to stop the execution after double clicking the BATCH file, just simply open the run window “Windows + r” and type “shutdown –a” and press enter. This will stop the execution of this program. Mind that in some Windows 8 loaded machines the countdown will not pop up, so remember if it pop ups or not, doesn’t matter, your program is in execution and will definitely take actions as per your commands in file for shutdown or restart.  

HAVE FUN!!!!!!!!!!!

NOTE: ON YOUR OWN RISK. WE ARE NOT RESPONSIBLE FOR YOUR INCORRECT ACTION.


Facebook Page: Gossip Room Blog

Posted By: Jeet Patel