From: "Berger, Daniel" Date: 2004-11-13T06:17:10+09:00 Subject: Re: File.link on Win32 > -----Original Message----- > From: Tim [mailto:timsuth@ihug.co.nz] > Sent: Friday, November 12, 2004 2:08 PM > To: ruby-core@ruby-lang.org > Subject: Re: File.link on Win32 > > > > Any ideas? > > File.link uses CreateHardLinkA which creates a "hard link" (using > inodes) rather than a shortcut. > > Try doing > File.link("C:\\temp.txt","C:\\temp2.txt") > and then reading the "temp2.txt" file. > > This will only work on NTFS I think. > > It's like using the `ln' program on a unix system. I see, and Windows doesn't like it when I use '.lnk' as the extension. In that case I should probably send a note off to PragDave to change the example and update the notes for File.link in Pickaxe II. :) Thanks. Dan