gpt4 book ai didi

batch-file - CMD 将目录更改为父目录 n 次

转载 作者:行者123 更新时间:2023-12-02 20:24:30 26 4
gpt4 key购买 nike

我对 cmd 不太了解,所以我想知道是否有一个快捷方式可以通过类似的方式升级 n 级:

cd ..^3

而不是:

cd ../../..

Related.

最佳答案

在 cmd 提示符下键入时:

cd .. and enter
uparrow and enter
uparrow and enter

在批处理文件中:

cd ..
cd ..
cd ..

或者这个:

for /L %%a in (1,1,3) do cd ..

关于batch-file - CMD 将目录更改为父目录 n 次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21136272/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com