回到上一次的目录
windows回到上一次目录和linux不同,没有cd - 命令。
我在这里找到一些答案:http://superuser.com/questions/129969/navigate-to-previous-directory-in-windows-command-prompt
下面的答案可以用在交互情况下,将mycd.bat复制到windows system32目录。
C:\Users\...\newlisp\win>pushd /?Stores the current directory for use by the POPD command, thenchanges to the specified directory.PUSHD [path | ..] path Specifies the directory to make the current directory.If Command Extensions are enabled the PUSHD command acceptsnetwork paths in addition to the normal drive letter and path.If a network path is specified, PUSHD will create a temporarydrive letter that points to that specified network resource andthen change the current drive and directory, using the newlydefined drive letter. Temporary drive letters are allocated fromZ: on down, using the first unused drive letter found.