How can I create an alias in Windows for a directory name so that I can type something like "MyDir" in the run box, and it go open that directory in explorer.

  1. Browse to the folder you want to create the shortcut to
  2. Right-click and select Sent to -> Desktop (create shortcut)
  3. On your desktop rename the shortcut to whatever you want the alias to be
  4. Move that shortcut to C:\Windows

Any file, folder, or shortcut you place in C:\Windows will be accessible from Start -> Run or any explorer window.

| improve this answer | |
  • 8
    shortcut isn't the same as alias – Joel Coehoorn Sep 30 '09 at 16:20
  • Try it, it works. It's the same thing as Ryan's solution but a hell of a lot easier because you don't have to open anything in notepad and type out all the paths. – djhowell Sep 30 '09 at 16:22
  • Plus, you can always rename the shortcut itself for "alias"-like behaviour. "C:\...\My Long Directory Name\" --> LongDir.lnk --> Start | Run | LongDir[Enter] – JMD Sep 30 '09 at 18:28
  • 2
    > shortcut isn't the same as alias @JoelCoehoorn, in the context of the question it is. – Synetech Jul 2 '12 at 19:55

It's not the quickest way in the world, but this should work.

  • Create a file called MyDir.cmd in any folder that's part of your PATH environment variable. C:\Windows for example.

  • Open that file in Notepad and type the following and then save it:

    start c:\path\to\mydir

Now you should just be able to run the command MyDir from anywhere and it will open explorer to that location.

| improve this answer | |

slightly OT:

have a look at Bayden System's SlickRun (a free floating command line utility for Windows.), use "MyDir" as a MagicWord to open the folder in question.

| improve this answer | |
  • I'll keep this in mind for future stuff. – C. Ross Sep 30 '09 at 16:58
  • 1
    once you start using Slickrun, you may wonder how you ever managed without it. exactly what the doctors have ordered for keyboard junkies. :) – Molly7244 Sep 30 '09 at 17:06
  • 2
    I concur: SlickRun should be a utility built into the O/S. +1 – JMD Sep 30 '09 at 18:34

There's a utility for creating symbolic links in windows:
junction c:\short-name "d:\my long dirname"

| improve this answer | |

1) Select the file or folder.
2) Middle mouse click the file and drag to open space in open window, release.
3) Select "Create Shortcuts Here" option.

| improve this answer | |
  • "Middle mouse click"? In Windows? And what "open window" do you suggest that he drag it into? – Scott Mar 14 '13 at 23:06

Let's say you want the G: drive to be mapped to your Google Drive. Here's how you'd do it:

  1. open up command prompt
  2. subst G: "C:\Users\\*insert your userid here*\Google Drive"

Then load up Task Scheduler and create a new task for it to run each time the computer starts up.

That's how I did it and it is working well so far, as I've only been using this substitute command today.

Anyone else, feel free to comment if you've had more extensive experience setting up a substitute drive to a cloud service and its results.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.