运行“嵌入式资源"; * .bat文件作为Shell进程 [英] Running "Embedded Resource" *.bat files as Shell Process

查看:107
本文介绍了运行“嵌入式资源"; * .bat文件作为Shell进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在主项目目录的下一级有一个文件.

I have a file one level deep from the main project directory.

它是嵌入式的.

如何从进程/shell命令运行它?当您知道该怎么做时,我认为这应该不会太困难,但是搜索引擎并不能给我很好的答案.

How do I run it from a process / shell command?  I don't think this should be too difficult when you know what to do, but search engines are not giving me good answers.

谢谢.


我希望它在某些代码分支中执行,而不是在编译过程中执行.

edit :
I want it to execute during certain branches of code, not during compilation.

推荐答案

这取决于您希望何时执行批处理文件.  如果您希望它在构建项目时运行,则可以执行以下操作:

It kind of depends when you were hoping that batch file would execute.  If you wanted it to run when you build your project, then you can do this:

项目>属性>建立事件>构建后事件命令行

Project > Properties > Build Events > Post-build event command line


这篇关于运行“嵌入式资源"; * .bat文件作为Shell进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆