Simple Batch Commands.

Introduction: Simple Batch Commands.

About: Hello! My name is Jack A.K.A NeroVuril and I am a screencaster and I can show you how to make things that have some reference to the computer. You can visit and view my videos and yo…

In this Instructable I will show you some simple yet effective Batch Commands. I will also treat my computer like it is a school computer and limit what I can do.

Step 1: The Shutdown Command

So with this command I can shut down the computer by its name or by its IP address. So first thing I will do is open the Command Prompt, I do this by Clicking on run. For vista users you can Hold down the Windows Key and press R. But there is a problem. The command prompt HAS to be run as an administrator for it too function to its best. But for this command, it should be fine. So I just type in CMD into Run and press enter or "OK".

Step 2: The Command

So now that Command Prompt is open, you can do more with your computer, or school computer. The command prompt itself looks complicated but its not, once you get use to it. So, the shutdown command is simply "shutdown -i", type that and press enter.

Step 3: Shutdown -i Box

So now you have pressed enter, another new window should of opened, this is where the "magic" happens. So, first of all you need to add the computer via its IP or Name. Click the add button then a new window will open that says "Add Computers" so go ahead and enter an IP/Computer Name and press "OK".
Then you can just go and put in whatever you want, what you want these computers to do, for example shutdown or restart. Then you can add how much time you can give the user to save there work, put in "0" for no time. Then go and fill in the other options. The comment section is what message comes up on screen when you indicate the shutdown, for Restart and Shutdown, the comment HAS to be filled in, but with the Unexpected shutdown, you can leave it blank. So in the comments section I put in something very "scary"  "Virus Detected, Your computer is been shutdown to protect files"

Step 4: Finished

Now that the basic information on how you want your victims computer to shutdown has been added, you just need to press OK and watch as the computer shuts down "magically".

Step 5: So How Do I Do This on Schools?

Most school networks have blocked the CMD application from been accssed to stop things like this from happening, but you can get around it very, very easly.

So your school computer has a bunch of programs installed, I bet somewhere you can find one that has a readme folder. So go ahead and look for one.

In this case, I found a ReadMe file on my Printer installation folder. So open up that readme and it should open up by default as a Notepad application window.

Step 6: The Command

So go ahead and press CTRL+A so all the boring stuff inside is selected, then delete it. Then type:
"" without the "" and press Save As. BUT STOP THERE.

Step 7: Saving As a Command Prompt Application

Delete the file name and same it as cmd.bat<<<<< The .bat HAS to be there. Then click the drop down arrow of "Save as type:" and click "all files". The save it to somewhere and make sure that your teacher isn't watching your screen or you could get into big shit. 

Step 8: Open It.

Now you have saved it, open it up and you have your own CMD application, just make sure you don't let anyone see it which brings me onto....


Step 9: Thanks

Thanks for reading this instructable and I hope it comes into some use. Please comment on it for anything I may of missed out on. Thanks again!

Be the First to Share


    • Make It Bridge

      Make It Bridge
    • Big and Small Contest

      Big and Small Contest
    • For the Home Contest

      For the Home Contest



    12 years ago on Step 9

    i have a bat file i am wanting to run on every school computer at once how would i do that without an ip adress ???


    Reply 11 years ago on Step 9

    Ok first off, I'm not responsible if you get in trouble or whatever.
    Second, if your school has a network, then EVERY computer's IP should be the same.


    11 years ago on Introduction

    i know how to clear the whole screen on cmd all you do is type @echo off then press enter and type cls and there is absolutely no writing on the cmd window iknow its kinda pointless but im new to batch files