Win32-shortcut 0.2.0

Hi all,

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

What is it?

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

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

Create a link on your 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

What’s new?

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

Where is it?

The usual places - the RAA or RubyForge at
Or, just do ‘gem install win32-shortcut’.


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


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