Who doesn’t want to play crazy pranks and freak out their pals? So, one trick for your pleasure. Use this to shutdown your friend’s computer remotely – without him/her knowing. You just need to create simple batch (.bat) file.
What Are Batch Files:
Batch files are files that allow MS-DOS and Microsoft Windows users to create a lists of commands and/or programs to run once the batch file has been executed. For example, a batch file could be used to run frequently run commands, deleting a series of files, moving files, etc. A simple batch file does not require any special programming skills and can be done by users who only know DOS commands.
A good example of a batch file for someone who is more familiar with Windows or the MacOS is to think of a batch file as a shortcut in Windows or an icon on the MacOS. Much like a shortcut, batch files could be used to run one or more commands and/or programs through the command line.
Another example of a very well-known batch file is the autoexec.bat, which is a simple boot file loaded each time the computer is loaded on MS-DOS and early Windows computers. This batch file contained all the necessary commands and programs used to run MS-DOS and Windows each time the computer booted.
How To Use Batch File To Shutdown Your Friends Computer:
The command to shut down the computer from command prompt is “shutdown –s –t XXXX” where X is the time in seconds after which the computer shuts down. To turn off your friends comp just create a batch file with this command and send it to your friend via Gtalk or yahoo messenger. When he opens the file then shut down process starts.
Learn More: Set A Timer For Windows Shutdown And Restart
How To Create Batch Files:
Creating batch files is very easy just open the note pad and type in the commands you want to be executed (each in a new line) and save it as “filename.bat” while saving the file make sure that you select “save as type= all files”
Recommended: Batch Programming Basics
Some More DOS Commands:
To change a user’s password: net user <username> <new password>
Example: To set the password of Satish as geniushackers the command would be:
net user Satish geniushackers.