Windows 10 How do I create a directory shortcut for shell use?

Jean109

Member
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?
 
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.
 
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%
 
Back
Top