如何用VB生成运行参数的exe文件? 我想在其它程序中用shell调用exe文件时,可以带参数运行....即传递参数到exe文件中..行吗?哪位做过了,马上给分??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 sub main() if Command<>"" then select case Command case 参数字串内容1 内容1处理窗口.show case 参数字串内容2 内容2处理窗口.show case ..... end select exit sub end if 起始窗口.showend sub 如何获取多个参数呢,要两个或以上,要用split进行分吗??? 定义自己的参数格式,在sub main里处理一下比如 strPara1~strPara2~strPara3然后在main()里split(command,"~") 1.exe文件如下Private Sub Command1_Click() MsgBox Command()End Sub2.exe文件如下Private Sub Command1_Click() dim arg as string arg="这里填写你要的参数" Shell app.path & "\1.exe " & argEnd Sub''command()就是运行时传递上来的参数'被调用的程序与参数要空格隔开 toury: DDE如何实时传参啊? http://topic.csdn.net/t/20021230/12/1312583.html参考8楼的例子 用command可以直接用s=commandcommand带的就是参数。 VB6继续用的原因。 FTP下载文件的问题 根据厂家提供的仪器的通讯协议,用串口调试助手,接收不到数据。。? 菜鸟,请教 高手请指点:怎么样才能更好的解决水晶报表的自定义纸张的问题? 用VB6查询DBF太慢了,有办法快些吗? 怎么样在DataReport中在同一页打印两个表中的内容。???? 高分求救,一控件的.datasource 错误,在线等待 关于导库的问题? 源程序如下:有何错误? 请教各位VB.Net的高手 求SQL语句
if Command<>"" then
select case Command
case 参数字串内容1
内容1处理窗口.show
case 参数字串内容2
内容2处理窗口.show
case .....
end select
exit sub
end if 起始窗口.show
end sub
比如 strPara1~strPara2~strPara3
然后在main()里split(command,"~")
MsgBox Command()
End Sub
2.exe文件如下Private Sub Command1_Click()
dim arg as string
arg="这里填写你要的参数"
Shell app.path & "\1.exe " & arg
End Sub'
'command()就是运行时传递上来的参数
'被调用的程序与参数要空格隔开
DDE如何实时传参啊?
参考8楼的例子
s=command
command带的就是参数。