shell:historyなどでchdirする。
エクスプローラではshell:historyなどで移れるが、コマンドプロンプトでは難儀します。そこで、
!cd shell:history
!cd.cmdをc:\windowsに入れておきます。
@if(0)==(0) ECHO OFF
FOR /F "delims=" %%0 IN ('CScript.exe //E:JScript //NoLogo "%~f0" "%~1"') DO pushd "%%0"
GOTO :EOF
@end
WScript.Echo(new ActiveXObject("Shell.Application").NameSpace(WScript.Arguments.Item(0)).Self.Path);