Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用以下命令:
netsh interface set interface name="Local Area Connection" admin=disabled
像这样通过它:
cloner.SendKeys"netsh interface set interface name="Local Area Connection" admin=disabled"
但我得到了错误:预期的语句结束。
问题是什么?
在 VbScript 中,您需要使用 2 个双引号字符来在字符串中包含双引号字符:
cloner.SendKeys "netsh interface set interface name=""Local Area Connection"" admin=disabled"