From: Niklas Frykholm Date: 2003-08-19T17:23:17+09:00 Subject: Re: How to open a file in windows Dan Doel wrote: > `start ` > > Also works on Windows XP (just checked). > > `` doesn't (although I thought it would). I use: module Win32 def Win32.start(file, *args) cmd = "\"#{file}\" " + \ (args.collect {|x| "\"#{x}\""}.join ' ') puts cmd system('start "" ' + cmd) end def Win32.run(file, *args) cmd = "\"#{file}\" " + \ (args.collect {|x| "\"#{x}\""}.join ' ') puts cmd system(cmd) end end start() is for opening documents and GUI programs, run() is for console programs (so that I can get their output in the console). // Niklas