Jic*_*hao 16 windows shell command-line
在Linux下,我可以使用cd -返回到最后一个目录。我怎么能在 Windows 上做到这一点?
Xet*_*ius 24
您可以使用 pushd 和 popd 命令。
pushd <dir> 将目录从位置 a 更改为位置 bpopd 将目录改回目录a例子:
pushd %TEMP% // go to user's temp dir, and remember
pushd \Windows // go to windows dir, and remember
popd // go back one dir, in this case the temp dir
popd // go back one more dir, in this where you were before temp
Run Code Online (Sandbox Code Playgroud)
小智 6
Cmd.exe 是旧 MS-DOS 的模拟层,命令相同:
对于其他人,请查看网络上的一些 Ms-Dos 表
| 归档时间: |
|
| 查看次数: |
161306 次 |
| 最近记录: |