How do I create a directory shortcut for shell use?

#1
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?
 


davehc

Essential Member
Premium Supporter
#2
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.
 


zirkoni

Extraordinary Member
#3
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%
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.
Top