pushd
秃噜豆儿 发表于 2020-06-24 18:21浏览次数:
pushd命令将目录或网络路径存储在内存中,以便可以随时访问。
The pushd command stores a directory or network path in memory so that it may be accessed at any time.
目录:
1 pushd 运行系统环境
2 pushd 语法
3 pushd 示例
pushd 运行系统环境
Windows xp
Windows vista
Windows 2000
Windows 7
Windows 8
Windows 10
pushd 语法
存储当前目录以供POPD命令使用,然后更改为指定目录。
PUSHD [path | ..]
该路径指定要创建当前目录的目录。
如果启用了命令扩展名,则pushd命令除了接受正常的驱动器号和路径外,还将接受网络路径。如果使用网络路径,pushd将创建一个指向该网络资源的临时驱动器号,然后使用新定义的驱动器号更改当前驱动器和目录。利用找到的第一个未使用的驱动器号,从Z:向下分配临时驱动器号。
Stores the current directory for use by the POPD command, then changes to the specified directory.
PUSHD [path | ..]
The path specifies the directory to make the current directory.
If Command Extensions are enabled, the PUSHD command accepts network paths in addition to the normal drive letter and path. If a network path is used, PUSHD creates a temporary drive letter that points to that network resource and then changes the current drive and directory using the newly defined drive letter. Temporary drive letters are allocated from Z: on down, utilizing the first unused drive letter found.
pushd 示例
pushd ..
当您在C:\ Windows \ System32目录中时键入此命令将存储该目录。如果您想返回到该目录,则可以使用POPD命令。
pushd ..
Typing this command when you were at C:\Windows\System32 directory would store that directory. If you then wanted to return to this directory, you would use the POPD command.