执行带有参数的命令行可执行文件并等待错误代码(整数)?
有谁知道调用命令行可执行文件的函数,允许向其传递参数(特别是字符串列表或字符串列表,并等待执行完成并返回错误代码(整数)?
我正在调用的可执行文件是delphi 应用程序,它返回一个错误代码,我没有编写该应用程序,并且我没有以任何方式修改它的源代码
。
Does anyone know of a function to call a commandline executable, allowing to pass it parameters (particularly a stringlist, or list of strings somehow, and waiting for execution to complete and return an error code (integer)?
The executable i am calling is a delphi app, which returns an error code. I did not write the app, and i do not have source to modify it in any way
thanx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我使用的代码。您应该能够在这里找到您需要的东西:
This is the code that I use. You should be able to find what you need in here: