让exe返回参数,就像exe在启动时接受参数一样 [英] Have an exe return parameters just like an exe accepts parameters on start

查看:132
本文介绍了让exe返回参数,就像exe在启动时接受参数一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从这个论坛上的一个问题中读到了.exe可以在启动时接受参数,就像您在调用方法并传递一些变量一样.如果是这样,如果我希望.exe返回值(例如在方法中使用ref或out关键字时),是否可以执行相同的操作?

再说一次,如果完全有可能,我该如何在exe文件中实现呢?

I read from a question on this forum .exe''s can be made to accept parameters on startup, almost like you are calling a method and passing some variables. If this is true, can the same be done if I want the .exe to return values (like when a ref or out keyword is used in methods)?

Again, if this is at all possible, how do I implement this into exe''s? Can I maaybe be given some resources to read through on this?

推荐答案

是可能的吗?

阅读链接.
yes its possible

read this link.


阅读:

http://stackoverflow.com/questions/5728196/如何从exe重新获得价值并重新启动它 [ http://msdn.microsoft.com/en-us/library/0fwzzxz2 (v = vs.80).aspx [
Read This:

http://stackoverflow.com/questions/5728196/how-to-get-return-value-from-exe-and-restart-it[^]

http://msdn.microsoft.com/en-us/library/0fwzzxz2(v=vs.80).aspx[^]


Well Main()可以返回一个整数,这有帮助吗?这是如何使用它的示例.

Main()返回值 [
Well Main() can return an integer does that help?? Here is an example of how this might be used.

Main() Return Values[^]


这篇关于让exe返回参数,就像exe在启动时接受参数一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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