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)!
kroq-gar78 says: Aug 13, 2009. 6:40 PM
why do you make the color 0a (greenish), not FFFFFF (white)?? just for the heck of it?
Dark-player in reply to kroq-gar78Dec 6, 2011. 10:07 AM
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) in reply to kroq-gar78Sep 3, 2009. 10:05 PM
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.
Saturn V in reply to El ManoSep 24, 2010. 12:56 PM
I like green because of The Matrix.
naruto 777 says: Aug 23, 2009. 2:18 PM
what if you dont have notepad and the portable one is blocked too?
corey11 in reply to naruto 777Aug 2, 2010. 12:03 AM
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) in reply to naruto 777Sep 3, 2009. 10:01 PM
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.
Doubleblades85 in reply to El ManoMar 25, 2010. 3:52 AM
haha, lol'd at the beggining of your comment
Geek101 in reply to El ManoNov 24, 2009. 5:57 PM
Visual basic!! Super easy to make a notepad clone!
kroq-gar78 says: Aug 13, 2009. 6:37 PM
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) in reply to kroq-gar78Sep 3, 2009. 10:08 PM
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_RaPiD says: Aug 1, 2009. 6:25 PM
(removed by author or community request)
El Mano (author) in reply to PyRo_RaPiDAug 1, 2009. 9:39 PM
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*"
PyRo_RaPiD in reply to El ManoAug 2, 2009. 6:53 PM
(removed by author or community request)
El Mano (author) in reply to PyRo_RaPiDAug 3, 2009. 11:27 AM
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 745 says: Jul 24, 2009. 8:02 PM
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.
mattyandchloe says: Jul 16, 2009. 11:12 AM
if you say title cmd commander-then put whatever you want here it will be called that like el mano
Scytheon3 says: Jul 12, 2009. 5:04 AM
Or you could just type the command you want to do into windows run and it will work just fine
iHackAlot says: May 30, 2009. 10:54 AM
or just type in command in notepad and save as .bat either way it works fine btw nice find
will421 says: May 27, 2009. 7:29 AM
What`s ? If it looks nice to you for me it says:
[00][13]
El Mano (author) in reply to will421May 27, 2009. 7:15 PM
Where is this in my -ible?
TheDeviant13 in reply to El ManoMay 27, 2009. 8:46 PM
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) in reply to TheDeviant13May 27, 2009. 9:54 PM
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.
TheDeviant13 in reply to El ManoMay 27, 2009. 10:52 PM
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.
PyroMaster007 says: Apr 28, 2009. 1:23 PM
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?
Pie Ninja in reply to PyroMaster007May 22, 2009. 2:43 AM
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) in reply to Pie NinjaMay 22, 2009. 3:15 PM
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?
Pie Ninja in reply to El ManoMay 22, 2009. 4:29 PM
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.
Pie Ninja in reply to Pie NinjaMay 22, 2009. 4:32 PM
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.
mitchell931993 says: Apr 27, 2009. 5:42 AM
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
Sublivious says: Apr 21, 2009. 8:53 AM
Wow....that actually worked even when CMD is disabled by GPO. Kudos!
lemonie says: Apr 17, 2009. 2:30 PM
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 in reply to lemonieApr 17, 2009. 7:52 PM
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 in reply to agentApr 18, 2009. 1:35 AM
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 in reply to lemonieApr 18, 2009. 7:07 AM
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.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!