How do I create a directory shortcut for shell use?

Discussion in 'Windows 10 Help and Support' started by Jean109, Oct 15, 2015.

  1. Jean109

    Jean109 Member

    Joined:
    Oct 15, 2015
    Messages:
    1
    Likes Received:
    0
    Hi, I am wondering how to create a shell shortcut for a directory. %windir% for instance points to C:\Windows. I'd like to also create a shell shortcut called %rubydir% which points to C:\PROGRA~1\CMD\Ruby223. Can you walk me through what I need to do?
     
  2. davehc

    davehc Microsoft MVP
    Premium Supporter Microsoft MVP

    Joined:
    May 1, 2008
    Messages:
    5,116
    Likes Received:
    301
    Not a great deal to walk through.

    Right click the Folder/directory. and select the option to create a shortcut. You can then select where you need it.
     
  3. zirkoni

    zirkoni Honorable Member

    Joined:
    Oct 8, 2009
    Messages:
    215
    Likes Received:
    10
    Use an environment variable.
    This is how you can do it from the command line:
    set rubydir=C:\PROGRA~1\CMD\Ruby223

    Then you can do something like:
    cd %rubydir%
     

Share This Page

Loading...