pushd
共有サーバーの場所に必要なvbscriptを作成し、いくつかのコマンドを実行して、最後にpopd
。
\\sharedLocation\server
サーバーに対する有効な共有フォルダーの場所です。
script.vbs
set ws = CreateObject("WScript.Shell")
arg = Wscript.Arguments.Named("arg")
push = "C:\Windows\System32\cmd.exe /c pushd " & arg
ws.Run(push)
上記のスクリプトをコマンドプロンプトで次のように実行します
> script.vbs /arg:\\sharedLocation\Server
しかし、何も起こりません。ここで何がうまくいかない可能性がありますか?このスクリプトはWindowsXPで実行しています。