AutoIT和报价

问题描述 投票:0回答:1

我需要创建AutoIT脚本,它将调用:

wmic path win32_tcpipprinterport where "hostaddress = 'server1'"  set hostaddress="server2"

试图结合这样的引号:

$CMD = 'wmic path win32_tcpipprinterport where ""hostaddress = ''server1''""  set hostaddress=""server2"" & pause'

RunWait(@ComSpec & " /c " & $CMD)

但仍然无法使其发挥作用。你能帮忙吗?

autoit wmic
1个回答
1
投票

但仍然无法使其发挥作用。

例:

$sCmd = 'wmic path win32_tcpipprinterport where "hostaddress = ''server1''" set hostaddress="server2"'

Related

© www.soinside.com 2019 - 2024. All rights reserved.