我怎么可以换用另一个.exe文件调用一个.exe(带参数)? [英] How can I wrap a call to an .exe (with arguments) with another .exe?

查看:430
本文介绍了我怎么可以换用另一个.exe文件调用一个.exe(带参数)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows可执行文件(比如的Program.exe ),我想为用户提供2发射器,将通过不同的参数吧。

I have a Windows executable (say program.exe) and I want to provide users with 2 launchers that will pass different arguments to it.

program.exe -a
program.exe -b

我可以很容易地做到这一点有2个批处理文件,但我宁愿为用户提供了2 exe文件,因为它们更容易被正确使用,无需修改。

I can easily do this with 2 batch files, but I would rather provide users with 2 .exe files as they are more likely to be used correctly without editing.

有一个简单的方法来创建这样一个可执行文件?

Is there an easy way to create such an executable?

推荐答案

您想IEx标志preSS后者负责编译批处理文件,以一个EXE:

You want IExpress which compiles your batch file to an exe:

http://renegadetech.blogspot.com/2006/07/how-to-convert-bat-file-or-vbs-file.html

这篇关于我怎么可以换用另一个.exe文件调用一个.exe(带参数)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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