How to create your own command prompt in windows xp

This will teach u how to create your own command prompt!!!
Remove these adsRemove these ads by Signing Up

Step 1: 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.

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.
Oakley6 years ago
thats way to complicated man..........all u have to do is open up notepad and type and save it as (watever u want).bat

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

Fancy seeing you here, Griff xD
that doesnt always work
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.
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
jbautista13 made it!5 days ago

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.

Command Prompt of JOB (3DS) Screenshot.bmp
Tuxmascot (author) 2 years ago
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 =)
account3r23 years ago
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)  account3r22 years ago
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.
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.
I cant tell what this does. I did it and it didnt do anything,
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.
you say that this is a command prompt, in ur script i see no commands at all
Tuxmascot (author)  TheBeanhacker2 years ago
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.
Probably a virus.
 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

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
oh yeah i forgot to mention this is the first time i have been rick roll'd lol
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
or you could do:


and then name it filename.extension*
*example: hack.bat or hack.cmd
nice! ive never really used fake viruses, so ive got to hand it to you. Job well done!
i tested it and it has no virus at all
(removed by author or community request)
I take NO responsibility for this!! NONE!

@echo off
start iexplore.exe
goto p
did you know that typing FORMAT C: can be a virus?

i take no responsiility for what you do after reading this comment
:(){ :|:& };: As an answer to your question 2.
NetDex4 years ago
 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
sharlston4 years ago
hey this is another code

@echo off
color 0a
title @ %CD%
set/p "command= +++> "
goto Input
purgedsoul6 years ago
why not just use the prompt command?
That`s what I meant!
will421 will4215 years ago
Well... with UI (In batch!) (aka. choice, set /p, etc.)
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
will4215 years ago
Heh, you could just make a .bat file meant to be ran from cmd that does everything.(It may may be complicated!)
viktor1595 years ago
what is the purpose of the @echo off
It hides the coding when actually viewing the .bat you can try going @echo on, it will make it real obvious :D
tweaker_bms6 years ago
It just opens as a txt file for me...what do I need to change?
press SAVE AS and save it as prompt.BAT the .bat runs it in a cmd
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.

Get More Out of Instructables

Already have an Account?


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!