| Last Update: | Sun Jul 29 08:31:53 -0600 2007 |
This is an interface for creating and/or modifying Windows shortcuts.
Ruby 1.8.2 or later. The win32ole package (part of the Ruby stdlib).
rake test (optional) rake install (non-gem) or rake install_gem (gem)
require 'win32/shortcut'
include Win32
Shortcut.new('c:\test.lnk') do |s|
s.description = "test link"
s.path = "c:\\winnt\\notepad.exe"
s.show_cmd = Shortcut::SHOWNORMAL
s.working_directory = "C:\\"
end
This code uses win32ole + wscript behind the scenes. The original C code is not distributed as part of the release, but is still retained in the CVS repository under the 'ext' directory should anyone ever need it.
None known.Please report any bugs on the project page at http://rubyforge.org/projects/win32utils.
Ideas welcome. Please submit them on the project page as a "Feature Request".
(C) 2003-2007, Daniel J. Berger, All Rights Reserved
Ruby's
This package is provided "as is" and without any exblockquotess or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.
The original win32-shortcut package was largely based on Aldo Calpini's Win32::Shortcut Perl module, and I copied some of the documentation as well.The current version (0.2.0 and later) is based on a patch by Jano Svitok.
Daniel J. Berger
Park Heesob