找回密码
 加入
搜索
查看: 2856|回复: 3

[AU3基础] 带有 双引号和单引号的批处理如何用 AUTOIT 执行

[复制链接]
发表于 2011-1-26 20:42:17 | 显示全部楼层 |阅读模式
本帖最后由 suntech 于 2011-1-26 21:54 编辑

convert -pointsize 16 -font fonts\simfang.ttf -fill white -draw "text 10,450 'SunTech Computer   Www.sg96.cN 0795-2516681'" boot.bmp new.bmp

也就是 _Rundos  后面如何接上这段批处理 ??
发表于 2011-1-26 22:01:07 | 显示全部楼层
本帖最后由 lixiaolong 于 2011-1-26 22:02 编辑

RunWait(@ComSpec & ' /c ' & 'convert -pointsize 16 -font fonts\simfang.ttf -fill white -draw "text 10,450 ' & "'" & _
'SunTech Computer   Www.sg96.cN 0795-2516681' & "'" & _
'" boot.bmp new.bmp', '', 0)


_RunDos('convert -pointsize 16 -font fonts\simfang.ttf -fill white -draw "text 10,450 ' & "'" & _
'SunTech Computer   Www.sg96.cN 0795-2516681' & "'" & _
'" boot.bmp new.bmp')


批处理转换AU3第二版 _BatToAU3ToRun
发表于 2011-1-26 22:19:43 | 显示全部楼层
本帖最后由 xxoojoeooxx 于 2011-1-26 22:22 编辑

其实这样应该也可以
_Rundos("convert -pointsize 16 -font fonts\simfang.ttf -fill white -draw ""text 10,450 'SunTech Computer   Www.sg96.cN 0795-2516681'"" boot.bmp new.bmp")

把双引号换成两个双引号
发表于 2011-1-28 01:40:00 | 显示全部楼层
引号问题 请参考帮助手册 --> 使用 AutoIt --> 语言相关 --> 数据类型 --> 字符串类型(String)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 14:32 , Processed in 0.079085 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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