Instructables

Command Programs

Picture of Command Programs
Hi instructable-maniacs. In this instructable I'll show you how to create some command-prompt programs (Windows) and update them. The programs will be created in command prompt and notepad. It's my first instructable, sorry for anything I don't write correctly (I am not English or American, either). Any comments and ratings will be accepted, bad or good. Also, I'd like to tell you that I'm building a program named Commander, which I'll upload later. Now, let's begin writing programs. For any questions email me to hackboom84@gmail.com
 
Remove these adsRemove these ads by Signing Up

Step 1: Shutdown me!

First, I'll show you a little trick when your start menu is frozen and you want to shutdown your computer. Follow the steps as shown:
1. Start Run (WindowsKey + r)
2. Write cmd
3. When the command prompt opens, write:
shutdown.exe -s -f -t 60 -c "Command by B@B@$tr00mf"
Then, a dialog will oen which says that your pc will shutdown in 60 seconds and a message Command by B@B@$tr00mf.
I will now explain what each thing does:
cmd=Starts the command prompt of windows
(code)
shutdown.exe=Begins the program shutdown.
-s = Sets the shutdown program to shutdown. (-r for restart, -l for log off)
-f = Forces all programs to shutdown.
-t xxx = Sets the time until shutdown, where xxx is time in seconds
-c "xxx" = This part is optional. It sets the pc to display a message, where xxx is your message.
To stop a shutdown, write shutdown -a.
The shutdown fuction is available in my program, Commander, too. This won't work in pcs with windows 2000 or earlier (i've just tried this =).

Step 2: Format a disk!

Okay, let's say that you need to format a disk. These are the instructions. (In this sample, you format disk a:).
1.Open notepad.
2.Write the code:
@echo off
format a:
3.Save it as format.bat (In "file type" you select All Files and in "encoding" you select ANSI only!!!) Save it as anything you want as its extension is .bat
Now I'll explain what any part of the code does:
@echo off=This sets the pc to not show the commands.
format x:=This sets the pc to format the disk of your selection where x is the disk.
format.bat20 bytes
WaterLemon73 years ago
tis is old lol what are you gus comenting aout know?
how do you remove the virtual disk
wtf this is old as what you rting it out of lol andto rmove the shutown when it hapens goto the start on left hand side of the page and type in shutdown -a and that will stop the shutting down process.
verynice... 5 as well.
mr.origami5 years ago
super cools dude 5 stars