我需要创建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)但还是不能让它发挥作用。你能帮忙吗?
发布于 2019-03-06 12:39:23
但还是不能让它发挥作用。
示例:
$sCmd = 'wmic path win32_tcpipprinterport where "hostaddress = ''server1''" set hostaddress="server2"'https://stackoverflow.com/questions/55023193
复制相似问题