Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / batch

Creating Your Own Command Prompt Like Visual Studio Command Prompt

2.46/5 (3 votes)
23 Aug 2011CPOL 22.2K  
Creating Your Own Command Prompt Like Visual Studio Command Prompt
Do you want to create your own command prompt like VS Command Prompt ?
Then this tip is for you :)

First create a file at your programs directory.
File's name will be Start.bat

Open it with your text editor and copy this code ::
@ECHO OFF
set PATH = YoutProgramsPath\Bin;%PATH%

echo Welcome to Your Programs Name Command Prompt 


Then create a shortcut to ::
%comspec% /k "Start.bat"


It opens the cmd and writes
Welcome to Your Programs Name Command Prompt 


and you can use all programs in
YoutProgramsPath\Bin


:)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)