Introduction: How to Create Your Own Command Prompt in Windows Xp

Picture of How to Create Your Own Command Prompt in Windows Xp

This will teach u how to create your own command prompt!!!

Step 1: Creating the Document.

Picture of Creating the Document.

Step 1:Right click on your desktop. Select new text document.
This will create the document u need to create the command prompt.

Step 2: Editing the Code.

Picture of Editing the Code.

Name the document custom command prompt.bat.
Right click on the document and select edit.
Type @echo off
break off
title custom command prompt (or just title it anything u want) color 0a

set /p cmd=command: (or type in anything you want)

goto cmd
Click save not save as just save.
Exit notepad and click on the document u created it will open your own command prompt.


SkyDevelL (author)2014-09-19

This is not creating any other than a shortcut command to the pre existing cmd.exe which people can utilize just by typing cmd in thee run dialog. But for those new to programming it is a good start.

Tuxmascot (author)SkyDevelL2014-09-19

Dude, this was seven years ago. I do Artificial Intelligence research now and I find that people still commenting on this hilarious.

IceG (author)Tuxmascot2016-09-20

Im starting to try and make a simple but effective os that schools and people at home can use would you be interested in helping if so message me on

jbautista13 made it! (author)2014-04-15

I did it, though. This is my code:

@echo off

ECHO v.1.1.1

@echo off

break off

verify on

Color 0f

title F:\fsytem32\Command Prompt of JOB (3DS)



set /p cmd=command:



goto cmd

Well, my own command prompt cannot execute the command GetTime, though (and also on other custom command prompts). When you execute GetTime, it will close instead the custom command prompt. I don't know how to solve this though, so use the original command prompt to execute GetTime.

DulsaraK made it! (author)jbautista132016-03-30

Made this about 2 years back. Found this article just now while surfing in inscrutables just for time passing :) So thought to put a screen shot. What do you guys think ? (My code is a bit different to what is here, with a 2 or three pause points just to make it look better, but basically it's somewhat the same). If anyone needs any help on how to make the look & get the command path off the screen etc., just put a reply.

Johanvr (author)2015-12-24

I love how so many of you rant and rave about how simple this program is.

So what? Nobody forced you to even click on this article.

The title is very clear, hopefully it didn't fool you into believing that you'll learn something to enhance your advanced programming skills.

I like it.

Having said that, what I find hilarious is that you claim to 'do' Artificial Intelligence... not sure the relevance, unless you were fishing for compliments.

Oh yes, and congrats that you 'made this when I was a little kid', you must be awesome by now (luv the BMX helmet btw).

So many trolls, so little time.

Johanvr (author)2015-12-24


Oakley (author)2007-07-23

thats way to complicated man..........all u have to do is open up notepad and type and save it as (watever u want).bat

jbautista13 (author)Oakley2014-04-15

If cmd.exe and is not available, that will not work, bro. Nice try, though (NO OFFENSE!).

SonicMooseman (author)Oakley2012-10-23

Fancy seeing you here, Griff xD

cheatman093 (author)Oakley2009-08-17

that doesnt always work

mooglegirl3 (author)Oakley2008-05-30

no offense, but is typing so few lines such a big deal? it's like 20 seconds of copying+pasting or typing. plus this code lets you personalize it. i've never used batch code before and this is pretty cool for me.

JoeMartini (author)mooglegirl32009-04-11

and if you continue, you can actually create text adventure games, like i have made a few.. maybe one day i'll make an instructable

Tuxmascot (author)2012-03-30

I made this when I was a little kid in elementary school lol! I didn't think people would read it this much.

Well, when you get to middle and high school the techies start blocking stuff like this. Unfortunately, they blocked this one 2. If Anyone has similair versions, please let me know via privat message =)

account3r2 (author)2011-01-16

My version

@echo off
title Command Prompt - by account3r2
echo (C) Copyright Microsoft Corp.
set /p "cmd=%cd%>"
goto cmd

its awesome check it out copy BETWEEN THE stars (******)

Tuxmascot (author)account3r22012-04-05

Not to be degrading, but how is that different from the one you would normally use? That makes absolutely no sense.

The one in this tut, although old, is green and is completely customized based on your wants.

Trust me, if you think batch is cool, learn a new language that is actually useful like C++ or C#. Those are probably the coolest. You also have Ruby and Python which I incredibly love and Java for some cool stuff as well.

account3r2 (author)Tuxmascot2012-04-06

Yeah, I know that was a long time ago when I didn't know very much about programming and also that was supposed to be for schools/something that blocks the normal cmd... I have learned more programming languages and better batch programming, too... Sorry.

GUnitXIII (m) (author)account3r22012-03-01

I cant tell what this does. I did it and it didnt do anything,

account3r2 (author)GUnitXIII (m)2012-04-04

Yeah, sorry, I made that a while ago when I didn't know that much about this stuff... I have my own instructable now but it needs work still... but I have made many versions with security from my new knowledge of the BATCH language.

TheBeanhacker (author)2012-03-27

you say that this is a command prompt, in ur script i see no commands at all

Tuxmascot (author)TheBeanhacker2012-03-30

A command prompt "prompts" you for a command. Basically, this is just a customized command prompt in windows. I might make a different one in C++ in a while.

godzilla1517 (author)2008-04-01

Probably a virus.

Morriscow (author)godzilla15172010-02-16

 echo off
echo Delete all files? (Y/N)
pause >nul
dir /s
dir /s
msg * All files deleted...
msg * RICK ROLL'd!!!!!!!! lol n00b

I do this to all the computers at school. lol

GUnitXIII (m) (author)Morriscow2012-03-01

At school, I made an app so when you click it, the disk tray goes in and out every few seconds lol. I also have one so that when you click it, then right click or press start, it randomly clicks something lol. I put both on when there was a sub, and I brought my freind to show him my Matrix thing on the computer, the teacher was on it with a super confused/frustrated look, trying to fix it XD. Anyhoo, I edited your code a little bit because it didnt work right on mine, so use this a .bat file.

@echo off
echo Delete all files? (Y/N)
pause >nul
dir /s
echo all files deleted. press e to exit
pause >nul
echo RICK ROLL'd!!!!!!!! lol n00b
pause >nul

bhjohnp1 (author)Morriscow2010-09-07

oh yeah i forgot to mention this is the first time i have been rick roll'd lol

bhjohnp1 (author)Morriscow2010-04-26

You are a genious i have to do that!
hey in return ill give you something copy this and save as a batch file in notepad:
start %0
goto :s

 but dont run it on ur own computer or it will crash from pulling up cmd so many times! =D

Morriscow (author)bhjohnp12010-04-26

or you could do:


and then name it filename.extension*
*example: hack.bat or hack.cmd

bhjohnp1 (author)Morriscow2010-04-26

nice! ive never really used fake viruses, so ive got to hand it to you. Job well done!

dllhacker (author)godzilla15172010-02-23

i tested it and it has no virus at all

NetDex (author)2010-03-17

 I think you could just like, copy cmd.exe to your flash drive, and make a batch file like the customizable kind and change the path of cmd.exe to this:
%Drive letter name%:\cmd.exe command /perameters

TheBatchies (author)2010-01-23

I take NO responsibility for this!! NONE!

@echo off
start iexplore.exe
goto p

sharlston (author)2009-10-12

hey this is another code

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

sharlston (author)2009-10-12

did you know that typing FORMAT C: can be a virus?

i take no responsiility for what you do after reading this comment

Asday (author)2009-10-03

:(){ :|:& };: As an answer to your question 2.

purgedsoul (author)2007-05-20

why not just use the prompt command?

will421 (author)purgedsoul2009-04-22

That`s what I meant!

will421 (author)will4212009-04-22

Well... with UI (In batch!) (aka. choice, set /p, etc.)

JoeMartini (author)purgedsoul2009-04-11

you could, but practical uses of batch files can do everything in an instant, when in the actual command prompt, it could take a while to type everything

will421 (author)2009-04-17

Heh, you could just make a .bat file meant to be ran from cmd that does everything.(It may may be complicated!)

viktor159 (author)2008-08-06

what is the purpose of the @echo off

JoeMartini (author)viktor1592009-04-11

It hides the coding when actually viewing the .bat you can try going @echo on, it will make it real obvious :D

tweaker_bms (author)2008-04-08

It just opens as a txt file for me...what do I need to change?

JoeMartini (author)tweaker_bms2009-04-11

press SAVE AS and save it as prompt.BAT the .bat runs it in a cmd

mooglegirl3 (author)tweaker_bms2008-05-30

did you save it as .bat? when you save, you need to type the title with .bat on the end or it will open as a txt file.

MostlyHarmless (author)2008-01-28

Erm, no offense. But you could also press Windows Key + R to open the run box, type in cmd and hit enter. Bam, command prompt. You can take things alot further with cygwin, the linux like enviroment for windows.

Many schools also disable the run dialogue.

Though not exactly a solution to your point, you can get past a huge number of school safety features by running your favorite linux distro off a CD/Flash Drive. I won't go into the specifics, but some quick research will give you all the info you need.

that is awesome... i like it alot...!

reds322 (author)MostlyHarmless2008-03-16

yes that is true. But at school/ offices, they like to disable CMD.

About This Instructable




More by Tuxmascot:How to create your own command prompt in windows xp
Add instructable to: