 |
Forums |
Admin Start New Thread
| Message: 58415 |
 |
BY: Ajay (sprewell) DATE: 2008-07-10 06:40 SUBJECT: using ruby-shortcut to create folder shortcut Man, this drove me nuts for some time so I thought I'd post it here. I was trying to create a folder shortcut using the standard code from win32-shortcut but it just wouldn't work for me. It took some examining of the created shortcuts with a hex editor and some googling before I found that you have to be very careful with the paths that you supply to Shortcut.path. While other win32 ruby libraries will accept directory paths of the form "C:\\foobar/roo/goo" and fix it for you, win32-shortcut will not. You must specify all paths as "C:\\foobar\\roo\\goo" for the folder shortcut to work. Normal shortcuts to files will work either way though, it's just folder shortcuts that go bonkers. | |
Thread View
Post a followup to this message
|
 |