掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
VBSでDOSコマンドを実行するには (ID:113198)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
VBSでDOSコマンドを実行したいと考えています。 リダイレクトを使って実行を試みましたが、上手くいきません。 もともと、VBSでDOSコマンドを実行すること自体が無理なんでしょうか? とりあえず、試して駄目だったものは次のとおりです。 VBSでDOSコマンドを実行する方法をご存知でしたら教えてください。 WS.Run "C:\WINNT\system32\netsh.exe -c interface dump > C:\TEMP\red_network.txt WS.Run "command.com netsh.exe -c interface dump > C:\TEMP\red_network.txt" 'WS.Run "C:\WINNT\system32\command.com > C:\WINNT\system32\netsh.exe -c interface dump > C:\TEMP\red_network.txt" WS.Run "C:\WINNT\system32\command.com < netsh -c interface dump > C:\TEMP\red_network.txt" WS.Run "C:\WINNT\system32\command.com > netsh -c interface dump > C:\TEMP\red_network.txt" WS.Run "netsh -c interface dump > C:\TEMP\red_network.txt" WS.Run "netsh -c interface dump > cmd > C:\TEMP\red_network.txt" WS.Run "cmd < netsh -c interface dump > C:\TEMP\red_network.txt" WS.Run "netsh -c interface dump > command.com > C:\TEMP\red_network.txt" WS.Run "command.com < netsh -c interface dump > c:\red_network.txt"
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.