Saturday 1 February 2014

Prank to Restart your Windows Computer repititively

We all know that we can shutdown or restart any computer by executing simple run commands.
But how would it be if we are going to use the same commands to do something unnatural altering your computer's performance.

We are going to use the run commands to play a prank on a computer to automatically shutdown after booting or restart after booting.

We achieve this by writing a simple batch file. A Batch file (filename.bat) is a file  containing instructions that are directly executed on command prompt. So we keep the instructions that we want to execute in a simple notepad file and going to save it with some file name. Now our work is to place the file into startup folder of your windows operating system.

Steps to follow:

  1. Open notepad
  2. copy and paste the follow the following code in bold letters
@echooff
shutdown -r -f -t 300 -c "Message"

In the above code -r stands for restarting, -f for force shutting down the computer, -t for time in seconds, -c for comments where in you can embed your own message to surprise your friend.

Instead of -r attribute, -s can be used to shutdown the computer.

Now save the file as shutdown.bat and place it in the startup folder of your computer. The items in startup items will be run automatically whenever the computer starts.

DOWNLOAD THE FILE FROM HERE

Startup item locations:

  • WINDOWS XP : C:\Documents and Settings\(user)\Start Menu\Programs\Startup
  • WINDOWS 7 & 8 : C:\Users\(User-Name)\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

To remove that startup item you may have to go to same folder and delete it. So, be careful when giving the time attribute and give appropriate time so that you can navigate to that folder and remove it. Else you have to restart your computer in safe mode and remove that file.

Thank You :)

No comments:

Post a Comment

Please add your valuable comments.We appreciate it.