noreply@rubyforge.org
2005-Jul-11 01:40 UTC
[Win32utils-devel] [ win32utils-Bugs-2093 ] unable to open existing shortcut
Bugs item #2093, was opened at 2005-07-08 04:43 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=2093&group_id=85 Category: win32-shortcut Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: unable to open existing shortcut Initial Comment: # ## My RUBY 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.exists?(link) s = Shortcut.new(link) s.description = "test link" s.path = ''c:\winnt\notepad.exe'' s.show_cmd = Shortcut::SHOWNORMAL s.working_directory = "C:\" s.save fail "LNK creation failed: #{link}" unless File.exists?(link) puts "Link #{link} created" s = Shortcut.open(link) puts "Path: #{s.path}" __END__ ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=2093&group_id=85
noreply@rubyforge.org
2005-Jul-17 22:54 UTC
[Win32utils-devel] [ win32utils-Bugs-2093 ] unable to open existing shortcut
Bugs item #2093, was opened at 2005-07-08 01:43 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=2093&group_id=85 Category: win32-shortcut>Group: CodeStatus: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: unable to open existing shortcut Initial Comment: # ## My RUBY 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.exists?(link) s = Shortcut.new(link) s.description = "test link" s.path = ''c:\winnt\notepad.exe'' s.show_cmd = Shortcut::SHOWNORMAL s.working_directory = "C:\" s.save fail "LNK creation failed: #{link}" unless File.exists?(link) puts "Link #{link} created" s = Shortcut.open(link) puts "Path: #{s.path}" __END__ ---------------------------------------------------------------------->Comment By: Daniel Berger (djberg96)Date: 2005-07-12 09:10 Message: Confirmed. In addition to requiring an absolute pathname (which I will handle internally), there is a problem with the approach I used for Shortcut#open in general. I''ll fix it this week. Thanks for the report. Dan ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=2093&group_id=85
noreply@rubyforge.org
2005-Jul-17 22:54 UTC
[Win32utils-devel] [ win32utils-Bugs-2093 ] unable to open existing shortcut
Bugs item #2093, was opened at 2005-07-08 01:43 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=2093&group_id=85 Category: win32-shortcut Group: Code>Status: ClosedResolution: None Priority: 3 Submitted By: Nobody (None)>Assigned to: Park Heesob (phasis68)Summary: unable to open existing shortcut Initial Comment: # ## My RUBY 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.exists?(link) s = Shortcut.new(link) s.description = "test link" s.path = ''c:\winnt\notepad.exe'' s.show_cmd = Shortcut::SHOWNORMAL s.working_directory = "C:\" s.save fail "LNK creation failed: #{link}" unless File.exists?(link) puts "Link #{link} created" s = Shortcut.open(link) puts "Path: #{s.path}" __END__ ---------------------------------------------------------------------->Comment By: Daniel Berger (djberg96)Date: 2005-07-17 13:43 Message: Fixed in 0.1.4 by Heesob. ---------------------------------------------------------------------- Comment By: Daniel Berger (djberg96) Date: 2005-07-12 09:10 Message: Confirmed. In addition to requiring an absolute pathname (which I will handle internally), there is a problem with the approach I used for Shortcut#open in general. I''ll fix it this week. Thanks for the report. Dan ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=2093&group_id=85