August 7, 2013

From Folder to Directory and Back

Filed under: Main — Tags: , , — admin @ 12:01 am

In the command prompt world of DOS, folders were called directories. Once the transition to the glorious graphical goodness of Windows was made, directories became folders. They’re still the same thing.

Start with a folder, window: I’ve opened my account folder, which is shown in Figure 1. To access the ugly, text-based directory for the same window, I press the Shift key, right-click in the window, and choose the command Open Command Windows Here, as shown in the Figure.

Figure 1. Shift+Right-click in a folder window to see the special menu. (Click to embiggen.)

Figure 1. Shift+Right-click in a folder window to see the special menu.
(Click to enbiggen.)

Do that on your own computer: Open your home folder, called the user profile folder by people at Microsoft who don’t like the well-established computer term home. Press the Shift key, right-click in the window, choose the command Open Command Windows Here.

In a few hundred nanoseconds, you’ll see the command prompt window appear. Type the DIR command and press the Enter key to see the text representation of the directories that appear as folders in the graphical window. Figure 2 illustrates that ugliness.

Figure 2. The DOS prompt displays the Music folder.Click to embiggen.

Figure 2. The DOS prompt displays the Music folder.
(Click to enbiggen.)

Assuming that the command prompt window is still open, type this text at the prompt:

cd music

You’ve just switched or changed directories (cd) to the music directory. The new command prompt should reflect that change, with the word Music appearing in the prompt text.

To view the files stored in the Music directory, type the DIR command and press the Enter key.

Weird, huh?

To view those same files as happy icons in a folder window, type this command:

explorer .

That’s the word explorer, a space, and then a period. Press the Enter key. A folder window appears showing the contents of the Music folder.

The program that displays folder windows is called Explorer. In fact, the program’s full name is Windows Explorer, where Windows could be the operating system’s name.

No advantage exists to hopping between the graphical folder window and the stark command prompt. If you know various DOS commands, then you may find working with files at the command prompt goes more quickly. But when you need to go back and forth, you now know the secrets.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.


Powered by WordPress