Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Daniel Berger
RE: using ruby-shortcut to create folder shor [ reply ]  
2008-07-10 11:39
That's interesting. It's simple enough to convert forward slashes to backslashes, so I can make that change in the next release.

Thanks for the report.

Dan

By: Ajay
using ruby-shortcut to create folder shortcut [ reply ]  
2008-07-10 06:40
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.