Win32-shortcut 0.2.0

Hi all,

The Win32Utils Team is happy to announce the release of win32-shortcut
0.2.0.

What is it?

An interface for creating shortcuts on MS Windows. Here’s a quick
synopsis:

require ‘win32/shortcut’
require ‘win32/dir’
include Win32

Create a link on your desktop

Shortcut.new(Dir::DESKTOP + ‘\Shortcut Script.lnk’) do |s|
s.path = “c:\” << Dir::WINDOWS << “\notepad.exe”
s.window_style = “normal”
s.hotkey = “CTRL+SHIFT+F”
s.icon_location = “notepad.exe”
s.description = “Shortcut Script”
s.working_directory = Dir::DESKTOP
end

What’s new?

It’s now pure Ruby, using win32ole behind the scenes. There’s also a
gem.
See the documentation for further details regarding some minor API
changes and improvements.

Where is it?

The usual places - the RAA or RubyForge at
http://www.rubyforge.org/projects/win32utils.
Or, just do ‘gem install win32-shortcut’.

Acknowledgements

Thanks go to Jano S. for the idea to use win32ole + WScript.Shell
and the initial patch.

Enjoy!

The Win32Utils Team

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs