如何将一步移回目录中的文件夹(Bash编程) [英] How Do I Move One Step Back To A Folder In A Directory (Bash Programming)

查看:90
本文介绍了如何将一步移回目录中的文件夹(Bash编程)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

cd资源

java -jar ProtractorReportGenerator.jar D:\ folder \Report D:\ pdder \ Report \



i在我的批处理文件中有这个代码。



i在资源文件夹中有一个jar文件,但在执行该jar之后我需要将一步移回主文件夹。我无法将jar文件转移到另一个文件夹。必须将该jar放在相同的资源文件夹中。我该怎么做

cd Resources
java -jar ProtractorReportGenerator.jar D:\folder\Report D:\folder\Report\

i have this code in my batch file.

i have a jar file in a resource folder but after executing that jar i need to move one step back to main folder. I cant shift the jar file to another folder. it is mandatory to place that jar in same resources folder . How do i do this

推荐答案

只回答问题的标题:

To answer just the title of the question:
pushd someDirectory
do-something-in-this-directory
popd
you-are-at-the-previous-directory



以防万一:如果您只需要转到父目录,请使用


Just in case: if you simple needed to go to a parent directory, use

cd ..



请参阅:

http://en.wikipedia.org/wiki/Pushd_and_popd [ ^ ]。



对不起,我懒得阅读并理解这么懒的人写的整个问题。对我来说,只要看到你没有解释退后一步到底是什么意思就足够了。刚学习 cd pushd popd 和目录语法名称足以解决任何类似的问题。



-SA


Please see:
http://en.wikipedia.org/wiki/Pushd_and_popd[^].

Sorry, I'm too lazy to read and understand the whole question written by so lazy person. To me, it's enough to see that you did not explain what exactly do you mean by "step back". Just learning cd, pushd, popd and syntax of directory names will be enough to solve any similar "problem".

—SA


这篇关于如何将一步移回目录中的文件夹(Bash编程)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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