📎 AI Summary:
The thread discusses how to create a shell shortcut for a directory in Windows. The original poster asks about setting an environment variable like %rubydir% to quickly access a folder. Respondents suggest creating a shortcut directly or setting an environment variable with the desired path, which can then be used in the command line to navigate efficiently. The overall tone is helpful and focused on practical solutions.

Jean109

Member
Member details
Joined
Oct 15, 2015
Messages
1
Thread Author #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
Member details
Joined
May 1, 2008
Messages
5,546
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
Member details
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