suntech 发表于 2011-1-26 20:42:17

带有 双引号和单引号的批处理如何用 AUTOIT 执行

本帖最后由 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后面如何接上这段批处理 ??

lixiaolong 发表于 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

xxoojoeooxx 发表于 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")
把双引号换成两个双引号

sxd 发表于 2011-1-28 01:40:00

引号问题 请参考帮助手册 --> 使用 AutoIt --> 语言相关 --> 数据类型 --> 字符串类型(String)
页: [1]
查看完整版本: 带有 双引号和单引号的批处理如何用 AUTOIT 执行