search for: show_cmd

Displaying 2 results from an estimated 2 matches for "show_cmd".

2006 Oct 26
5
[ win32utils-Patches-6335 ] pure ruby implementation
...k) Assigned to: Nobody (None) Summary: pure ruby implementation Initial Comment: This is (not finished) pure-ruby implementation of Win32::Shortcut. Differences: - new takes block (yield self at the end of initialize) - open, relative_path, resolve and icon_number are not implemented - instead of show_cmd window_style is used Other than that, it should be pretty usable. I''ve attached simple unit test as well ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=6335&group_id...
2005 Jul 11
2
[ win32utils-Bugs-2093 ] unable to open existing shortcut
...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__ ---------------------------------------------------...