Change to a "parallel" directory in a single instruction

0

I would like to move directly from the "Classwork" directory into the "Assembly" directory with a single command line instruction. If possible, I would like to use relative paths to do this:

Transversal Command Prompt

I would venture to guess that there is a simple command to accomplish this, but I am not familiar with the terminology. It's possible that I don't know how to phrase this question correctly, hence my inability to find a pre-existing answer.

Apologies if I am duplicating a question and any help would be appreciated!

Shrout1

Posted 2015-06-03T20:45:36.323

Reputation: 929

Answers

2

This should do it:

cd ..\Assembly

.. means move up one so it would put you in the parent Documents directory and then get you into Assembly

MonkeyZeus

Posted 2015-06-03T20:45:36.323

Reputation: 7 101

Thank you very much! This may be silly as well, but let's say there is a folder called "x86" inside of "Assembly". Would I simply append that so the command would read cd ..\Assembly\x86? – Shrout1 – 2015-06-04T00:28:53.967

@Shrout1 try it :) – MonkeyZeus – 2015-06-04T00:35:49.990

@Shrout1: Tab completion is of great help in all such cases. Just type a letter or two and press Tab, or just press Tab to cycle between all available choices. – Karan – 2015-06-04T05:28:28.430

@MonkeyZeus Works great! Seems like an inane question, yet somehow I have never played with it. Thanks again! – Shrout1 – 2015-06-04T20:35:01.713

@Karan Thank you! I will keep that in mind in the future. Greatly appreciate the help. – Shrout1 – 2015-06-04T20:35:37.733