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.
cmd /k dir
- Calls the command line interpreter
- Opens the command window, executes the specified command, and keeps the window open after executing.
- The command to run.
DIRlists the contents of the current directory.