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

Jean109

Member
Joined
Oct 15, 2015
Messages
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?
 

Solution
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%

davehc

Essential Member
Premium Supporter
Joined
May 1, 2008
Messages
5,554
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
Joined
Oct 8, 2009
Messages
230
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%
 

Solution
Back
Top