传递超过我的参数到exe [英] passing more than i arguments to an exe

查看:73
本文介绍了传递超过我的参数到exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好......我需要一些帮助。

i希望将4个参数传递给exe ...并从vb代码中获取vales但截至目前我只能传递1个参数.......

这里是我的代码.....

hello guys...i need some help.
i want to pass 4 arguments to an exe...and get the vales from the vb code but as of now am only able to pass 1 argument.......
here is my code.....

RUN start update.exe &arg 1





但我想要的是......





but what i want is....

RUN start update.exe &arg 1,arg2,arg3,arg4





然后在我的主程序中收到它们....





and then receive them in my main program....

Public Sub Main(ByVal args As String())
       
            string p = args(0)

            string p = args(1)

            string p = args(2)

谢谢大家我从foxpro 9执行exe。

thanks guys i execute the exe from foxpro 9.

推荐答案

了解解析命令行参数 [ ^ ]



要传递4个参数,请使用:

Read about Parsing Command-line arguments[^]

To pass 4 arguments, use this:
RUN start update.exe "argument 1" "second parameter" "third" "another parameter"



要阅读它,请使用 for ... next [ ^ ]循环。


这篇关于传递超过我的参数到exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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