I want to create a .bat file that will open Developer command prompt and there i need to change directory "cd .. " path " " and execute few commands there.
Asked
Active
Viewed 6,911 times
3
-
Have you ever found a satisfactory answer to this question? – Phil Brubaker Nov 04 '17 at 12:24
-
Possible duplicate of [How to create a Batch File for Visual Studio Command Prompt](https://stackoverflow.com/questions/5879076/how-to-create-a-batch-file-for-visual-studio-command-prompt) – jww Jan 08 '18 at 15:25
3 Answers
2
Working on this now.
my current .txt file has a hanged extension of (.bat) Which is batch.
Copy & Paste this within your batch file.
echo off
title My Test Batch File
:: See the title at the top.
echo Test file executed.
echo I am too lazy to write commands again and again.
C:\Program Files (x86)\Microsoft Visual Studio 14.0>
pause

Jake Westerfield
- 21
- 4
-
1This will only open the regular command prompt, I'm still trying to get the developer command prompt for VS2015 to open. but it just seems like a normal application, so It should be able to be executed via: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\" – Jake Westerfield Jun 24 '17 at 02:05
-
THanks for the help but i think is opening normal command prompt only :( – Dhrumil Pathak Jul 06 '17 at 13:36
2
The Developer Command Prompt for Visual Studio
is nothing more as the normal cmd with a bat script run at the start.
You can run this script by yourself.
call "%programfiles(x86)%\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat"

NtFreX
- 10,379
- 2
- 43
- 63
0
Right Click on your project name under solution explorer, then locate open command line, select developer command Prompt or use shortcut: shift + Alt + ,

Ibrahim Hammed
- 833
- 1
- 8
- 17