visual-studio - 用Visual Studio 2010编译后执行exe文件或bat文件

标签 visual-studio visual-studio-2010 exe post-build-event build-events

在 C++ 程序的编译结束后,我会执行一个 exe 文件或一个 bat 文件。我怎么能这样做?

编辑 1
这是我的实际命令行:

start "C:\mypath\myexe.exe myarguments"

最佳答案

查看 C++ 项目配置属性中的“构建事件”部分。您可以在此处定义在项目构建之前、链接器运行之前和项目构建之后运行的命令。

关于visual-studio - 用Visual Studio 2010编译后执行exe文件或bat文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5132623/

相关文章:

asp.net - 在 Visual Studio 2015 上部署到 azure web 应用程序时如何解决此错误 "NoRegisteredProviderFound"?

c++ - 使用OpenCV 2.4.3在Visual C++中读取/写入图像时出错

ruby - 将ruby脚本编译成exe?

build-automation - TFS 2010 成功构建后没有复制 exe 文件

.net - Visual Studio 扩展性 : Move to line in a TextDocument

javascript - mvc session 过期后,如何使整个页面重定向到登录?

C++ 如何加载 .NET 运行时,从而托管 WPF 组件

asp.net - VS Development Server中的"System.Web.HttpException: Unable to validate data"错误,但IIS中没有

c++ - 链接到 Visual Studio 2010 中的静态库

Python Selenium GUI 到可执行文件