Displaying 2 results from an estimated 2 matches for "shortcuterror".
2005 Jul 11
2
[ win32utils-Bugs-2093 ] unable to open existing shortcut
...version
#
C:\>ruby -v
ruby 1.8.2 (2004-12-25) [i386-mswin32]
#
## Shortcut execution log with error
#
C:\>ruby M:\CDD\ruby\win32\shortcut\bug.rb
Version: 0.1.3
Link C:/test.lnk created
M:/CDD/ruby/win32/shortcut/bug.rb:22:in `open'': The system cannot find the file
specified. (Win32::ShortcutError)
from M:/CDD/ruby/win32/shortcut/bug.rb:22
#
## Test script
#
=== M:\CDD\ruby\win32\shortcut\bug.rb ===
#!/usr/bin/ruby
require ''win32/shortcut''
include Win32
puts "Version: " + Shortcut::VERSION
link = ''C:/test.lnk''
File.delete(link) if File...
2004 Sep 21
1
win32-shortcut problems
Hi all,
I''ve started porting the Win32::Shortcut Perl module over to Ruby. I''ve
done some initial work and committed it to CVS (look under win32utils - I
goofed and made a toplevel dir as well - it''s empty).
Anyway, everything compiles fine, but when I do "s = Shortcut.new" I get a
weird error:
test.rb:11:in `initialize'': undefined method