How to open directories using cmd?

Open command prompt, I will encourage you to open it as administrator. To open it as administrator you can right click on it and then select ‘Run as administrator or you can search it in start menu and then instead of pressing ‘Enter’, press ‘CTRL’ + ‘SHIFT’ + ‘ENTER’. It will look something like this:

cmd

Now, if you want to open any folder first you have to switch to that partition. For switching a partition you can directly write directory name like “G:“, it will change my directory to “G:\

cmd2

Now, to open certain folder in that partition we use “cd FOLDER NAME” just substitute folder name with your desired folder name. Like if I want to open “Software” folder in G: partition, I will write “cd Software“.

cmd3

Right now I’m in G:\Software, you can keep on using “cd FOLDER NAME” to open your desired folder. If you want to go back up one folder we use “cd..”.

cmd4

You can use “cd..” again and again to go back up to your partition directory. Or you can use “cd\” to go back up to your partition.

cmd5

If you want to change the directory, once inside a directory. Lets supposed you are in “G:\Software\PSpice\Lite  Small“, but now you want to go to “C:\Program Files\Microsoft Office“. You will use “cd /d C:\Program Files\Microsoft Office“. “/d” lets you change the partition directory.

cmd6

Enjoy!

Advertisements

3 Comments Add yours

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s