Random geekery since 2005.

Husband, father, programmer, speaker, writer, blogger, podcaster, collector, traveler, golfer.

Today is the twelvth day of Diduary. You can see links to all of the published articles in the series here.

There are still many times that I use a command prompt to navigate my file system. As a child of DOS, commands, like “dir /w” are still very fluent for me. But as Windows has grown, so too have the length of file addresses. It used to be that I would install everything to C:, and now it’s in a file location 8 folders deep.

I’m ready to admit that perhaps typing those addresses in a command prompt just don’t make as much sense as they used to. As it turns out, there’s a much easier way to do it, too.

From any Windows Explorer window, there’s a little folder icon in the address bar.

Drag that icon to your command prompt, and it will write the fully defined file location on your command line. Like this:

I had to type the “cd” before I dragged the file location in, but you can see that it allowed me to use that path, rather than typing it. Time savings, for the win!

Tags

4 responses to “The 12th of Diduary: Did you know you can drag Windows Explorer to the command line?”

  1. James Hollingshead Avatar
    James Hollingshead

    That one I didn't know. I always just copied the folder location and pasted it into the cmd window

  2. Brian Jackett Avatar
    Brian Jackett

    Nice to see one of my suggestions make it into the final list.

  3. JessieH Avatar

    Thank you for your help!

  4. Mike Brown Avatar
    Mike Brown

    You can also drag an exe to the command line or a folder.

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 )

Facebook photo

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

Connecting to %s

Create a website or blog at WordPress.com

%d bloggers like this: