AutoIT和报价 [英] AutoIT and quotes

查看:73
本文介绍了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 ?

推荐答案

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

But still cannot make it working.

示例:

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

相关.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆