我需要创建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)
但仍然无法使其发挥作用。你能帮忙吗?
但仍然无法使其发挥作用。
例:
$sCmd = 'wmic path win32_tcpipprinterport where "hostaddress = ''server1''" set hostaddress="server2"'