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.

link|improve this question

67% accept rate
2  
superuser.com/questions/34265/… – joe Sep 30 '09 at 15:49
feedback

3 Answers

up vote 5 down vote accepted
  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.

link|improve this answer
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
Yep, this works. Simple like I wanted. – C. Ross Sep 30 '09 at 16:58
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
feedback

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.

link|improve this answer
feedback

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.

link|improve this answer
I'll keep this in mind for future stuff. – C. Ross Sep 30 '09 at 16:58
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
1  
I concur: SlickRun should be a utility built into the O/S. +1 – JMD Sep 30 '09 at 18:34
feedback

Your Answer

 
or
required, but never shown

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