本文介绍了AutoIT和报价的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建AutoIT脚本,该脚本将称为:

I need to create AutoIT script which will call this:

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)

但仍然无法使其正常工作.请您帮忙吗?

But still cannot make it working.Please can you help ?

推荐答案

示例:

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

相关.

这篇关于AutoIT和报价的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 22:59