找回密码
 加入
搜索
查看: 1901|回复: 4

请教运行带引号参数的程序如何调用?以及带函数运行的问题!

[复制链接]
发表于 2010-1-20 01:40:58 | 显示全部楼层 |阅读模式
本帖最后由 finley 于 2010-1-21 14:07 编辑

在批处理中运行
start D:\Progra~1\thunder\settime.exe /immediate /movetime 01\05\2009 05:00:00 "D:\Program Files\thunder\thunder.exe"
不知道换到AU3中该如何写呢?

感谢超级斑竹afan给我的回复,转换成AU3后的代码
Run('D:\Progra~1\thunder\settime.exe /immediate /movetime 01\05\2009 05:00:00 "D:\Program Files\thunder\thunder.exe"')
这个时候我想利用@ScriptDir来代替D:\Program Files\thunder,可是我用下面的句子却无法正常运行,请问那里错了?
Run('D:\Progra~1\thunder\settime.exe /immediate /movetime 01\05\2009 05:00:00 @ScriptDir"\thunder.exe"')
 楼主| 发表于 2010-1-21 00:37:43 | 显示全部楼层
怎么没人回复呀?不削一顾么?
发表于 2010-1-21 00:39:20 | 显示全部楼层
Run('D:\Progra~1\thunder\settime.exe /immediate /movetime 01\05\2009 05:00:00 "D:\Program Files\thunder\thunder.exe"')
 楼主| 发表于 2010-1-21 14:10:00 | 显示全部楼层
自己顶一下!
发表于 2010-1-21 14:12:47 | 显示全部楼层
回复 4# finley
Run('D:\Progra~1\thunder\settime.exe /immediate /movetime 01\05\2009 05:00:00 "' & @ScriptDir & '\thunder.exe"')
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-17 11:25 , Processed in 0.073041 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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