PawEng

Software, hardware, and the internet

Skip to: Content | Sidebar | Footer


 Subscribe to feed    

Symbolic Links in Windows

24 June, 2009 (9:41 pm) | Windows

Symbolic links are used all the time on Linux and Unix systems, but I didn’t know they existed on Windows. It turns out, however, that Windows 2000 and higher also supports symbolic links — or junctions as they are called. You can use the program Junction v1.05 to create a link between two directories.

This comes in handy if you need to map a path from one machine to a path on another machine. For example, I have Perl CGI scripts that I run on both my Windows laptop and on a Linux server. I have been changing the shebang line from #!/usr/bin/perl to #!C:/perl/bin/perl. Using junctions, I can now simply link C:/perl to C:/usr, and the #!/usr/bin/perl line will work on both Windows and Linux.

I found this solution on Thierry Bothorel’s web page Symbolic links in Windows.

Comments

Comment from Alexandr Ciornii
Time June 25, 2009 at 3:09 am

I use “ScriptInterpreterSource registry” in Apache to run programs based on extension.

Write a comment