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"