Command Explained: “View the contents of a folder from Windows Explorer”

A while back, I posted a command that allowed you to get a directory listing in a command window started from the Windows Explorer address bar. You may have realized that this is actually redundant and useless in its current form because listing the directory contents is what Windows Explorer does, but if taken a little further, it can become more useful. No, I won’t be going through that in this post.

The command:
cmd /k dir

cmd
Calls the command line interpreter cmd.exe
/k
Opens the command window, executes the specified command, and keeps the window open after executing.
dir
The command to run. DIR lists the contents of the current directory.
Advertisements

`$name' says...

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

%d bloggers like this: