我想创建一个.bat文件,可以打开开发人员命令提示符,然后在那里我需要更改目录 "cd .." 路径 "" 并执行一些命令。
Visual Studio开发人员命令提示符
本质上就是在启动时运行了一个批处理脚本的普通cmd。call "%programfiles(x86)%\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat"
我正在处理这个问题。
我的当前.txt文件扩展名是(.bat),它是批处理文件。
请将以下内容复制并粘贴到您的批处理文件中。
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
在解决方案资源管理器下右键单击您的项目名称,然后找到打开命令行,选择开发人员命令提示符或使用快捷键:shift + Alt + ,