RSS

Shutdown your friend’s computer using a batch file

Mon, Dec 3, 2007 1,746 views

Tips, Windows

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 shut down your friends comp:

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.

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”

Some DOS Commands:

To change a users password: net user username new passwd

Example: To set the password of Satish as geniushackers the command would be

Net user Satish geniushackers

……..some more to be added soon

Some screen shots for better understanding:

Creating a batch file for windows shut down

Change user password from command promt Change user password from command promt


, , ,
Related entries

This post was written by:

Satish - who has written 182 posts on GeniusHackers.Com.


Contact the author

13 Comments For This Post

  1. Keshav Khera Says:

    if you give more time in the ‘t’ command, the victim may get time for aborting the shutdown by running this command ’shutdown -a’
    Happy shutting :)

  2. Satish Says:

    ya ur correct that shouldn’t be more than 5 seconds best choice would be 0

  3. http://norahtech.net/Forum/ Says:

    O.K so this is not all new, Though here is another one to test.. I used to practise this alot on XP…

    Shutdown -r -t 60 -c We Rock the World!

    Lol!

    http://norahtech.net/Forum/viewtopic.php?f=27&t=34

  4. http://norahtech.net/Forum/ Says:

    Shutdown -r -t 60 -c “We Rock the World!”

    Add the ” “

  5. Dayvid Lean Says:

    tem algum comando do prompt, q posso estar transferindo arquivos entre pc’s ???

  6. Riley Says:

    HOw do you send a NET SEND message to someone elses computer so that it keeps repeating itself?

  7. Satish Says:

    Hi Riley
    I wrote this post exclusively for you
    http://geniushackers.com/blog/2008/04/17/flood-your-friends-computer-with-messages-using-net-send/

  8. batch.filer Says:

    is there any way to send it over aim? please reply
    thx

  9. Satish Says:

    This can be sent from any IM client which supports file transfers. i dont know about aim.If aim supports file transfers then you can play this prank. I will find it and tell you. May be you can use pidigin.
    http://www.pidgin.im/download/
    The main thing in this you should some how get the file clicked by your victim. You can even send it via email. When i first used this 9 people fell in the trap. Post your count….

  10. batch.filer Says:

    ight thx Sat.

  11. batch.filer Says:

    do u also know how to send them a batch file that freezes there computer till the one who sent it presses any key?

  12. user hu dusnt want to expose Says:

    wats the note pad wen it ses how to make a batch file

  13. mr lokman Says:

    how to know our friend ip address using command prompt

Leave a Reply