wmic nic where "netconnectionid like '%'" get netconnectionid
このコードはコンソール上で適切に実行されますが、以下のようなスクリプトをバッチ処理しようとしている間、スクリプトは実行されませんでした。何か提案はありますか?以下のスクリプトの正しいエスケープ文字は何ですか?
ありがとう。
@Echo Off
For /f "tokens=1*" %%a In ('wmic nic where "netconnectionid like '%'" get netconnectionid') Do (
Call :UseNetworkAdapter "%%a %%b"
)