【问题标题】:AutoIT and quotesAutoIT 和报价
【发布时间】:2019-03-06 12:31:46
【问题描述】:

我需要创建 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】:

    但仍然无法使其正常工作。

    例子:

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

    Related.

    【讨论】:

      猜你喜欢
      • 2015-10-18
      • 2012-03-12
      • 1970-01-01
      • 1970-01-01
      • 2016-03-28
      • 1970-01-01
      • 1970-01-01
      • 2020-11-12
      • 2014-08-26
      相关资源
      最近更新 更多