[Win32utils-devel] FW: File.link on Win32
win32utils-devel at rubyforge.org
win32utils-devel at rubyforge.org
Fri Nov 12 12:12:44 EST 2004
I sent this to ruby-core. I meant to cc win32utils as well. :)
Dan
-----Original Message-----
From: Berger, Daniel [mailto:Daniel.Berger at qwest.com]
Sent: Friday, November 12, 2004 10:08 AM
To: ruby-core at 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
More information about the win32utils-devel
mailing list