win32utils-devel@rubyforge.org
2004-Nov-12 12:12 UTC
[Win32utils-devel] FW: File.link on Win32
I sent this to ruby-core. I meant to cc win32utils as well. :) Dan -----Original Message----- From: Berger, Daniel [mailto:Daniel.Berger@qwest.com] Sent: Friday, November 12, 2004 10:08 AM To: ruby-core@ruby-lang.org Subject: File.link on Win32 Hi all, I noticed that win32.c in 1.8.2 p3 contained a link() function (or maybe it was always there and I never noticed). Anyway, it doesn''t seem to work properly. File.link("C:\\temp.txt","C:\\temp.lnk") It creates a shortcut, but it''s busted. Double clicking on the shortcut does nothing. If I right click on the shortcut in Windows Explorer and select the "shortcut" tab it says, "This is not a valid shortcut". Any ideas? Regards, Dan