Introduction: How to Make the BEST Command Prompt (cmd)

Picture of How to Make the BEST Command Prompt (cmd)

Hello, everyone!

Today I will show you how to make one of the BEST CMDs ever.

Please rate this Instructable, by the way!

Step 1: Materials

Picture of Materials

Here's what you need:

     • Computer
     • Text editor (Can be simple, I'm using Notepad for Windows)
     • You
     • Keyboard (Optional, see step 2)
     • Mouse (Optional, see step 2)
     • Hand(s)

If you have most of the above, (must include computer, keyboard/mouse and hand[s]) then you can click Next Step

Step 2: The Code

Picture of The Code

Ok. Here's the code (copy between the stars) then I will explain:


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


Yes, about step 1... You can use the mouse to copy, paste and save the file. Or you can just use the keyboard, using MouseKeys or shift-select then CTRL-C and CTRL-V.

Step 3: The Explanation

@echo off ----- This tells the computer not to display commands unless it is told to do so.

cls ----- This clears any text on the screen.

title Command Prompt - by account3r2 ----- Displays the text after "title" on the title bar.

ver ----- Displays the version of Windows you are running.

echo (C) Copyright Microsoft Corp. ----- Echo displays text, The rest just says the Microsoft has copyright.

echo. ----- Echo with a period after it skips a line, like pressing enter twice does.

:cmd ----- Sets a point to access called "cmd".

set /p "cmd=%cd%>" ----- Makes a line you can type on, then saves what you typed tempararily into "cmd".

%cmd% ----- Does the command you typed.

echo. ----- Still skips a line.

goto cmd ----- Goes to the access point set called "cmd"

Step 4: Saving the File

Picture of Saving the File

Now we will save the file.

First, press file. (OR Alt+F)
Next, press Save or Save As... (OR S) (OR Just Press CTRL+S at #1)
Then, Type a name like "whatever.bat" or "CMDPRMPT.bat" but whatever it is put .bat at the end (you can use on screen keyboard for this)
After that, press save.

Step 5: Running the Program

Picture of Running the Program

Next you run the program by double clicking it or by selecting it and pressing enter.
It should look like the picture below.

Step 6: Suggestions? Updates?

If anyone has any suggestions or updates for this program, please leave a comment below. Feel free to leave any comments for anything else, and again, please rate this! Thanks!


ProG11 (author)2017-05-03

how can i make my OWN commands and only run my OWN commands (not windows commands)?

HYBR1Dx2 (author)2017-03-17

so. I try to put " prompt _: " in and it does not work ;-; FICKS ITTTTTTT

HYBR1Dx2 (author)HYBR1Dx22017-03-17

nvm. Just had to change cmd=(stuff) to cmd=_:

PrashantS63 (author)2016-02-15

PLs Tell Me How Get Some One Nearest IP Addresses

If you want a net work ip just do followings:

1. net view (You will see every person on your network)

2. tracert NAME (You'll see the person(s) pc name in net view)

3. Lookup the ip who you traced in your network simple :D

PrashantS63 (author)2016-02-15


csevrence1. made it! (author)2015-10-29

This batch ↓↓↓ loads Minecraft then runs a Sikuli script to automate the login process. Since I have multiple Minecraft accounts, a choice menu was very helpful. "Sikuli" is an amazing free program created by the folks at MiT that can automate just about anything that is shown on your monitor. The program is very easy to pick up and also has more programming options which can be found outside of the simple gui.

I cut chunks from

Big Helpfull Batch File Menu

by Gravity Falls Drummer

and molded it to my liking.

@echo off

color 0A



echo 1 - Minecraft: csevrence

echo 2 - Minecraft: illuminate123

echo 3 - BOTH csev and illu

echo 4 - EXIT

set Choice=

set /p Choice=""

if '%Choice%'=='1' goto csev

if '%Choice%'=='2' goto illu

if '%Choice%'=='3' goto csevillu

if '%Choice%'=='4' goto exit2



@CALL "C:\Program Files (x86)\Minecraft\Minecraft.exe"

@CALL "C:\Program Files (x86)\Sikuli\runIDE.cmd" -r "C:\Program Files (x86)\Sikuli\Scripts\MCcsevrence.skl"

goto exit



@CALL "C:\Program Files (x86)\Minecraft\Minecraft.exe"

@CALL "C:\Program Files (x86)\Sikuli\runIDE.cmd" -r "C:\Program Files (x86)\Sikuli\Scripts\MCilluminate123.skl"

goto exit



@CALL "C:\Program Files (x86)\Minecraft\Minecraft.exe"

@CALL "C:\Program Files (x86)\Sikuli\runIDE.cmd" -r "C:\Program Files (x86)\Sikuli\Scripts\MCcsevrence.skl"

goto illu



lemonie (author)2011-01-25

There isn't anything like enough in this to be worth posting. Stuff like this is all over the internet anyway - what can you write that's something new / different / clever?


kodybrown (author)lemonie2014-08-22

Using this code enables you to make changes to your prompt that you wouldn't otherwise be able to. For instance:

@echo off



title Command Prompt - by account3r2

echo Command Prompt - by account3r2


echo (c) Microsoft Corporation. All rights reserved.



set /p "cmd=%cd:\=/%>"

call %cmd%

goto :cmd

account3r2 (author)lemonie2011-01-29

Like maybe... How to make a program that makes one of the EASIEST to make and the BEST CMDs ever? And I could post the program on this 'Ible?

lemonie (author)account3r22011-01-30

Well yeah, the site's for stuff we don't know already - sharing stuff we've learned etc.


Prof. Pickle (author)2012-12-21

Some custom commands would be nice...

account3r2 (author)Prof. Pickle2013-09-18

Can't believe how long it's been since I wrote this. And how ignorant I I have written (and lost, unfortunately) a nice batch "operating system" which had custom commands and nice features in addition to a command line. It had a nice ASCII "GUI" even though of course it was a TUI.

Prof. Pickle (author)account3r22013-09-18

That's why it's always a bad idea to look back at your work *shudder*.

asharma97 (author)2013-09-16

i want to make a cmd application with the following commad:
"arp -d"
and i want to set a time after which it automatically starts at regular interval at background
can you tell me the coding for this

account3r2 (author)asharma972013-09-18

Wow it has been years since I wrote this... I sounded so dumb lol... and I'm not quite sure, but knowing batch programming is a good start. Really any programming language is, because it's all the same. For example, Spanish and English are both languages and words mean the same thing, they just look and sound a little different. I'm sure with a little practice, you can make an amazing program. Looking over the years, I've made some pretty cool stuff. In elementary school, I wrote an "operating system" in batch. It was amazing. I made it in 5th grade. In middle school, I hacked my school's server and some teacher computers...using batch. That was fun. I also screwed with the school security system through it. In high school, I did some of the same stuff, not as much though, but Unfortunately I can't help you much here at the time, I have to continue with my studies. I may look into it sometime soonm though. Sorry.

account3r2 (author)account3r22013-09-18

Whoops. Should've checked for typos. I meant "soon" and not "soonm"

account3r2 (author)2012-01-22

Oops, I forgot to post that it could be for using at school, a portable version for a flash drive, etc. and I might need to edit some other stuff on this 'Ible, too... I know more about batch files and such now, so I might make this even better!

About This Instructable



Bio: I've been interested in programming and computer science since age 9!
More by account3r2:How to make the BEST Command Prompt (cmd)How to make a USB Rumble Pack
Add instructable to: