ApexGaming
Welcome to ApexGaming! if you haven't already please register and account and or login! Very Happy, if you have already registered and do not wish to see this again, simply click "Do not desplay again" so this will stop annoying the fuck out of you! ^-^

Thanks and Enjoy ApexGaming!
ApexGaming
Welcome to ApexGaming! if you haven't already please register and account and or login! Very Happy, if you have already registered and do not wish to see this again, simply click "Do not desplay again" so this will stop annoying the fuck out of you! ^-^

Thanks and Enjoy ApexGaming!
ApexGaming
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Almost as exciting as sex!
 
HomePortalGalleryLatest imagesSearchRegisterLog in

 

 how to make your own command prompt!

Go down 
AuthorMessage
KillerQueen
ApexGaming Co-Owner



Posts : 132
Join date : 2009-03-28
Age : 30
Location : California

how to make your own command prompt! Empty
PostSubject: how to make your own command prompt!   how to make your own command prompt! I_icon_minitimeSat Mar 28, 2009 7:11 pm

Hey, this is what i do, so i thought why not just tell everyone who didnt already know and wants to be badass with their own cmd. First open up notepad and pase this :
-----------------------------------------

@echo off
break off
Title (ENTER THE NAME HERE) Command Prompt
color 0a
cls

echo Type "home" any time to go to the current user profile directory.
echo Type "desktop" any time to go to the current user desktop.
echo.
echo Type help to see list of common commands like cd, rd, md, del,
echo ren, replace, copy, xcopy, move, attrib, tree, edit, and cls.
echo Type [command]/? for detailed info.
echo.
pause
cls

:cmd
echo Directory: %CD%
set /P CMD=Command:
if "%CMD%" == "cls" goto cls
if "%CMD%" == "home" goto home
if "%CMD%" == "desktop" goto desktop
if "%CMD%" == "red" goto red
if "%CMD%" == "green" goto green

%CMD%
echo.
goto cmd

:cls
cls
goto cmd

:home
cd /d %USERPROFILE%
cls
goto cmd

:desktop
cd /d %SystemDrive%\DOCUME~1\%USERNAME%\Deskto p
cls
goto cmd

:red
color 0c
cls
goto cmd

:green
color 0a
cls
goto cmd

-------------------------------------

DO NOT enter that lines(------------), anyways heres basically what it does:

By entering the colors Green or Red you can change the color of the text fast.

Typing Home resets any erros you have done. basically thats all their is to it, you can use this as your own custom cmd plus you can practice code on it. Also make sure to delete the (ENTER NAME HERE) i put, your suposed to delete that and enter what you want the title to be. You can always add more colors but im just giving green and red.

but i guess you can have these: here are some other colors ;D

0= black
1= Blue
2 = Green
3 = Aqua
4 = Red
5 = Purple
6= Yellow
7 = White
8= Gray
9 = Light Blue
a = Light Green
b = Aqua
c = LightRed
d= Light Purple
e = Light yellow
f = Bright White.

to add another color simply enter this code in the .bat(edit using notepad)

:COLOR
color 0COLOR
cls
goto cmd

Replace :COLOR with the name of the color
and 0COLOR with 0 then the letter/number of the color.

Also Make sure under echo directory you enter this:

if "%CMD%" == "COLOR" goto COLOR
so that it wont error and you can switch to any color you like Very Happy


Enjoy Very Happy

Rep me if you like it XD!
Back to top Go down
https://apexgaming.darkbb.com
 
how to make your own command prompt!
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
ApexGaming :: ApexGaming Community :: Coding and Programming :: Tutorials-
Jump to: