# Win32-shortcut 0.2.0

**URL:** <https://www.ruby-forum.com/t/win32-shortcut-0-2-0/74561>\
**Category:** Ruby\
**Created:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/win32-shortcut-0-2-0/74561 "2006-11-07T10:48:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/win32-shortcut-0-2-0/74561/1 "2006-11-07T10:48:15Z")

</div>

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](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
