在Windows中列出目录堆栈 [英] List directory stack in windows

查看:35
本文介绍了在Windows中列出目录堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下命令列出已添加到目录堆栈中的目录: pushd

I am trying to list the directories that have been added to the directory stack using the command: pushd

我找不到有关如何打印目录堆栈内容的任何引用或命令.

I cannot find any references or command on how to print the directory stack contents.

感谢您的帮助

推荐答案

不带参数的 pushd 输出堆叠目录的列表.

A pushd without parameters outputs the list of the stacked directories.

pushd c:\
pushd windows
pushd help
pushd windows
pushd en-us

pushd

将输出

c:\ Windows \ Help \ Windows
c:\ Windows \ Help
c:\ Windows
c:\
c:\ Temp

c:\Windows\Help\Windows
c:\Windows\Help
c:\Windows
c:\
c:\Temp

此处缺少最新的推送目录,但可以通过%__ CD __%进行简单检索.

The latest pushed directory is missing here, but can simply retrieved by %__CD__%.

还有一个目录(在我的情况下为 C:\ temp ),因为它将是最后执行的 popd 之后的目录.

And there is one more directory (in my case C:\temp), as that will be the directory after the last executed popd.

这篇关于在Windows中列出目录堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆