找回密码
 加入
搜索
查看: 2034|回复: 5

[AU3基础] 愁死了,runwait带的命令行参数一直整不明白了

  [复制链接]
发表于 2015-1-2 22:57:03 | 显示全部楼层 |阅读模式
问题是这样的
原命令格式如下:

abc.exe  -u 123 -e text -a "d:\abc\m.txt" -t post -s text2

现在是
path=$filepath&"\m.txt"

即path是上面abc.exe -a参数后面的值

那这样的命令用runwait()怎么写啊
RunWait("abc.exe  -u 123 -e text -a $path -t post -s text2")
上面这个一编译就出错,怎么改也不好用
发表于 2015-1-2 23:05:32 | 显示全部楼层
RunWait('abc.exe  -u 123 -e text -a "' & $path & '" -t post -s text2')
 楼主| 发表于 2015-1-2 23:13:25 | 显示全部楼层
哈哈,版本出来了,讲一下要点吧
如果原命令行是:abc.exe  -u “123” -e text -a "d:\abc\m.txt" -t post -s text2

那代码应该怎么写啊
发表于 2015-1-2 23:24:30 | 显示全部楼层
本帖最后由 netegg 于 2015-1-2 23:27 编辑

runwait('abc.exe  -u "123" -e text -a "d:\abc\m.txt" -t post -s text2')
发表于 2015-1-4 07:33:42 | 显示全部楼层
谢谢分享。。。。。。。。。。
发表于 2015-1-4 08:30:59 | 显示全部楼层
回复 2# afan


    顶一个!!!!!!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-20 16:38 , Processed in 0.070261 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表