os.link & NTFS 5

"Martin v. Löwis" martin at v.loewis.de
Fri Dec 27 16:28:58 EST 2002


Wolfgang Strobl wrote:
>>Right. Now, how do I use this in a binary that needs to run on W9x and
>>WNT as well?
> 
> 
> You don't.  The original question was about WinXP, though. 

Alas, a single binary needs to support all Windows versions, that's why 
CreateHardLink cannot be used.

>>This isn't really an equivalent: the target file name must denote a
>>directory.
> 
> 
> If I'm not mistaken, that's just what the OP needed.

The OP said that he wasn't certain what he needs; from the description, 
it appears that hard links are what the OP would really want.

Regards,
Martin




More information about the Python-list mailing list