Instructables
If you're interested in coding or batch scripting, check out my latest Ible here.

I've read a few Instructables about playing with school computers in which people complain about how difficult it is to open Command Prompt. Yes, you can usually find a way past the school restrictions, or you can download Command Prompt Portable from portableapps.com, but I have a batch file that will do the exact same thing.
 
Remove these adsRemove these ads by Signing Up

Step 1: The Script

To make CMD Commander, Version 3 (so-named because it commands the Command Prompt program), simply copy/paste the following into NotePad:

@echo off
color 0a
:Input
title @ %CD%
echo.
set/p "command= +++> "
%command%
goto Input

Save as a batch file (CMD Commander.bat, All Program Files), and run it. You now have a portable Command Prompt that is only a few bites in size (miniscule)!

Step 2: Commanding CMD

Picture of Commanding CMD
CMD Commander will allow you to do almost anything you can do with the real Command Prompt. Just type in a command and you can navigate directories, delete files, or shut down the computer without bypassing the computer's security. Just place it on your flash drive and it becomes completely portable (or simply memorize the basic code, and you can type it into NotepPad in about a minute). Unfortunately, you can't do anything with variables (attrib %CD% -h, echo %TIME%) because the command you give is stored in a variable, and a variable stored in a variable just gives the name. If you need to use a variable for something using CMD Commander, use the follwing script and enter "goto Extras" into the program.

@echo off
color 0a
:Input
title @ %CD%
echo.
set/p "command= +++> "
%command%
goto Input

:Extras
*YOUR COMMANDS HERE*
goto Input


******************************

El Mano:


How to hide Computer Files from the Tecnically Illiterate

Keep your Eyes working Great

This simple health switch will Keep you Warm

Wreak Havok with this simple Computer Virus


******************************
kroq-gar785 years ago
why do you make the color 0a (greenish), not FFFFFF (white)?? just for the heck of it?
you could use any color you want, but FFFFFF wont wok, because its not a command color (from 01 to FE, you can't use same chars)
El Mano (author)  kroq-gar785 years ago
I like a bit of color. The standard white of CMD is rather boring, don't you think? I used bright blue (09) on version 2, but it was a little hard to see when sitting away from the screen. Light green is a nice, easy-to-see color, and it looks cool against the black. You can set it to any color; white on black, pink on grey, red on purple. I just like the green.
I like green because of The Matrix.
naruto 7775 years ago
what if you dont have notepad and the portable one is blocked too?
Simple, if you have a computer at home, type this up in notepad and save it on a thumbdrive! It's easy, just hide it deep in the thumb drive and if you make a shortcut, chance the icon and name. I have so much code on my thumbdrive it's not even funny!
El Mano (author)  naruto 7775 years ago
Well, then you better learn C++ real fast and write a program to do whatever you're trying to do, because the patron saint of batch scripters has decided that you're ugly! Ha ha ! Ha! Ha!..Thunk!.. "Ugh..." (gurgle) Sorry about that; I just hit my sarcasm streak over the head with a 9-Iron. Batch is a rather limited language, which I use for various tasks because it's easy and I couldn't find a C++ compiler that worked simply enough to keep me persevering in learning the language. Chances are that if your school computer has blocked NotePad, CMD, Run, and Command Prompt Portable, the process of unblocking said programs would involve some tedious research, some sneaky skullduggery, and a trip to the principal's office when your librarian (who is technologically advanced enough to affectively block the desired programs) notices your attempts to hack the system. You could try VBS or, if you have a lot of time on your hands, a home-made, compiled program (or a ready-made program off the web; if you do find one that works, I presume you'll share it with our class), or, unless you're trying to hack into the school administrator, you could just do your business on a computer that the school's evil net of restriction hasn't yet ensnared.
haha, lol'd at the beggining of your comment
Geek101 El Mano4 years ago
Visual basic!! Super easy to make a notepad clone!
kroq-gar785 years ago
haha... nice way of thinking about it, but can't you just go to run and type 'cmd'????? it's so much easier than doing whatever you're doing. but, if what you mean by 'restrictions' is that you can't open command prompt, then forget whatever i said at the top. nice tutorial either way tho!
El Mano (author)  kroq-gar785 years ago
You can, but I like to add my own touch to things. CMD Commander is also useful when manipulating files/folders, as you can just drag and drop the batch file into any file-to-be-changed, instead of "Run, CMD, cd C:\Documents and Settings\Me\etc."
PyRo_RaPiD5 years ago
(removed by author or community request)
El Mano (author)  PyRo_RaPiD5 years ago
It didn't make a difference when I tried it. I don't see the point of trying to change the %CD% variable unless you are navigating directories. Then you can just type "cd *YOUR DIRECTORY HERE*"
(removed by author or community request)
El Mano (author)  PyRo_RaPiD5 years ago
Maybe I didn't do it right, but when I added "set CD=Hello", to the repeating part of the file, it just replaced the directory name with "Hello". Not very useful, unless you want to look innocent when the school librarian walks up behind you and asks what your doing. ("Oh, nothing, I'm just playing the Hello Game. I type in anything and try to get the screen to say something other than 'Hello'. There's a secret password that make the screen say 'You Win!', but I haven't found it yet.") Adding "set CD=" didn't do anything. You said it fixed a glitch: what glitch?
wizerd 7455 years ago
At my school the computers arnt allowed to run batch files, however last year my computer would for some reason. It was just luck, nothing I did.
if you say title cmd commander-then put whatever you want here it will be called that like el mano
Scytheon35 years ago
Or you could just type the command you want to do into windows run and it will work just fine
iHackAlot5 years ago
or just type in command in notepad and save as .bat either way it works fine btw nice find
will4215 years ago
What`s ? If it looks nice to you for me it says:
[00][13]
El Mano (author)  will4215 years ago
Where is this in my -ible?
steps 1 and 3 where you have the text that needs to go into the batch file at it says title CMD Commander By El Mano
El Mano (author)  TheDeviant135 years ago
It should say "title CMD Commander - By El Mano". I type my instructions on M-Word and then copy/paste them into the editor. For some reason the editor treats things like dashes and quotes as those little boxes. I go back afterward and fix them, but I guess I missed one. I've got a new version of the Commander to add, so I'll fix it soon.
Ok I also noticed that when I pasted it into word and I like this just as much as CMD prompt because it does the same thing and can be used if CMD is blocked such as at school dang it though school is out for me well there is always time to perfect my program list for next year.
my admin has blocked the use of command prompt so when i open it it displays a message that says "command prompt has been disabled by your administrator..." your 'ible didn't help, same message displayed. any help?
There are a couple of things you can try that your admin may have overlooked: Writing your commands in notepad and saving them as .bat The "Run" button in the start menu, just type cmd.exe where the text box is I'm trying to find other ways around admin restrictions at my school, but I really don't have to anymore after I found out the Admin password :P Hope this helps
El Mano (author)  Pie Ninja5 years ago
You can download Command Prompt Portable from portableapps.com; I used this before I wrote CMD Commander. How did you get the admin's password?
Black Magic :D (It was a stroke of luck actually) Also, you could try writing your batch files at home and converting them to .exe using a converter.
Oh, you could try the net user command and typing the admin user name after it, like so; net user "admin user name" Obviously without the quotes, and if you're lucky you may find that it lists the password, (as well as other info from the last logon) it hasn't worked for me, but it has for some people.
another way to do this is make a new trext file and save ti as command.bat just type in the text file : echo off command.com
Sublivious5 years ago
Wow....that actually worked even when CMD is disabled by GPO. Kudos!
lemonie5 years ago
So this does use the normal CMD but modifies it? I'm interested as to how this bypasses blocks on running CMD (in technical detail) L
agent lemonie5 years ago
You will be able to run the commands through a "tunnel" (for lack of a better word). It is not the REAL command prompt, just runs whatever commands you tell it to. It's really hard to explain though. It might work, but it might not. Depends on the security.
lemonie agent5 years ago
Sorry, I misunderstood this If it's not using CMD what is the command-interpreter it is using? I suppose I should try it and find out! L
Padlock lemonie5 years ago
Cmd is really just a "launcher," for say. The commands that you type in are actually just the name of a program, with certain attributes after them. The same thing applies for a batch file- each command is a program, and the coding after it is just attributes the program is started with. When you set the variable in El Mano's CMD, it then takes it and runs the content of the variable. It's just like pressing (Windows Key) and R, except it has more functionality. However, some commands are built INTO command prompt, like echo. In a computer that actually has command prompt deleted, these inclusive commands should not work. If it just has it blocked, then it might would work, depending on the sophistication of the blocking program. If it allows SYSTEM user to run it, then it should work, but if it doesn't allow anyone to use it, then no it shouldn't work.