What I do to easily switch between different DMD versions and libraries on Windows

Bruno Medeiros brunodomedeiros+spam at com.gmail
Thu Jun 21 14:16:47 PDT 2007


Tomas Lindquist Olsen wrote:
> Don Clugston wrote:
> 
>> Daniel Keep wrote:
>>> Henning Hasemann wrote:
>>>> "Anders Bergh" <anders1 at gmail.com> schrieb (Wed, 20 Jun 2007 12:45:30
>>>> +0200):
>>>>
>>>>> http://www.microsoft.com/technet/sysinternals/FileAndDisk/Junction.mspx
>>>>> This tool lets you create directory symlinks (NTFS junctions).
>>>> Cool I didnt know Windows has "already" something that comes close to
>>>> "real" symlinks.
>>>>
>>>> Henning
>>> They aren't.  You need to be very careful with junctions.  Firstly, if
>>> you delete a junction directly, you will delete the original folder as
>>> well!  To make this worse, there is no way to tell from explorer if a
>>> folder is a junction or not.
>> A solution to this would be to change the icon while making the junction.
>> Anyone changed a folder icon before? Probably just an API call to set file
>> attributes.
>>
>>> Anders' trick is still cool, but just be very careful with it.  MS
>>> didn't write a tool to create junctions for a very good reason :)
>>>
>>> -- Daniel
> 
> Back when I used Windows I used this shell extension which allows you to
> manage links and junctions from explorer, and it changes the icons. Very
> handy!
> 
> -Tomas

For working with junction points (folders) and hard links (file) in 
Windows I recommend NTFS Link:
   http://sourceforge.net/projects/ntfslinkext
It's an extension to file explorer with many features, like junction 
icon (green arrow), hard link icon (yellow arrow), deletion detection, 
explorer creation, unlink, link target viewing, etc. .

-- 
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list