Trying to emulate a UNIX-style Symlink in Windows.

I'm working on a .NET API and I'm actively using the Git GUI in conjunction with the git commands at the Command prompt. (I'm using ConEmu rather than the generic Windows Command Prompt tool.) I'd love to be able to open the Git GUI executable (and, for that matter, Sublime Text executable) at the command prompt to the current directory. In OS X for example, I'd navigate to the project directory and type the following.

Open Sublime Text to the current directory: subl .
Open GitX to the current directory: gitx .

I've set these up in OS X using "symlinks." How do I set up something similar in Windows? I suspect I use the PATH variable along with the %programfiles% or %programfiles(x86)% path to the executables?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan CraciunIT ConsultantCommented:
To create a symlink in Windows you use
mklink /type link_path file/folder_path

Open in new window

where type is one of the following:
/D – creates a soft symbolic link, basically a shortcut
/H – creates a hard link to a file
/J – creates a hard link to a directory or folder (junction point)


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dan CraciunIT ConsultantCommented:
To be able to open a program from anywhere, its path needs to be included in the PATH variable.
Control Panel->System->Advanced System Settings->Advanced->Environment variables
Click on Path, then on Edit. The delimiter is ;
jdanaAuthor Commented:
Dan CraciunIT ConsultantCommented:
You're welcome!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.