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

[AU3基础] 如何使用引号:在配置文件里没有引号,在run()后的地址里加引号??

  [复制链接]
发表于 2010-12-20 18:01:57 | 显示全部楼层 |阅读模式
比如我要向peizhi.ini 里面写
[update]
updat=start.exe
而我要在run命令中实现
run(@scriptdir &“\start.exe”)这里的引号怎么加的???我试过如下都出错。
如:
$start=iniread("peizhi.ini","[update]","updat","1")
run(@scriptdir &"\$start")
无法运行!!!!
发表于 2010-12-20 18:31:47 | 显示全部楼层
$start=iniread("peizhi.ini","update","updat","1")
run(@scriptdir &"\"&$start)
发表于 2010-12-20 18:33:53 | 显示全部楼层
$start=iniread("peizhi.ini","[update]","updat","1")
run(@scriptdir & "\" & $start)

run(@scriptdir &“\start.exe”)  这个主意中英文下的符号

中文“” 英文""
发表于 2010-12-21 01:31:52 | 显示全部楼层
变量就别加引号了  SCITE用颜色标注出来了的吧
 楼主| 发表于 2010-12-21 11:36:04 | 显示全部楼层
非常感谢the886、黑色袜子、zch11230两位,问题解决了!!!!谢谢!!!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-10 10:38 , Processed in 0.078322 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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