如果内容有""如何使用Send();在里面 ? (AutoIt的)

时间:2015-04-23 20:02:52

标签: autoit

 Run("cmd.exe")
Global $String = "wmic process where name="example.exe" get commandline"
Send($String)

结果:

Global $String = "wmic process where name="example.exe" get commandline"
Global $String = "wmic process where name="^ ERROR

1 个答案:

答案 0 :(得分:2)

您只需使用单引号括起您的字符串。

$string = 'test "example" and more stuff'

或者你可以通过将它们加倍来“逃避”双引号,就像AutoIt中数据类型的Strings description中所述。

$string = "test ""example"" and more stuff"