Skip to content

Commit

Permalink
Merge pull request #486 from stuartpreston/docfix_windows_shortcut
Browse files Browse the repository at this point in the history
windows_shortcut: update example to a version that is idempotent
  • Loading branch information
tas50 authored Jul 26, 2017
2 parents 1f3b29c + d592325 commit 487a55f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,16 +441,16 @@ Creates and modifies Windows shortcuts.

#### Examples

Add a shortcut all users desktop:
Add a shortcut to all users desktop:

```ruby
require 'win32ole'
all_users_desktop = WIN32OLE.new("WScript.Shell").SpecialFolders("AllUsersDesktop")

windows_shortcut "#{all_users_desktop}/Notepad.lnk" do
target "C:\\WINDOWS\\notepad.exe"
target "C:\\Windows\\notepad.exe"
description "Launch Notepad"
iconlocation "C:\\windows\\notepad.exe, 0"
iconlocation "C:\\Windows\\notepad.exe,0"
end
```

Expand Down

0 comments on commit 487a55f

Please sign in to comment.