From: Charles Churchill Date: 2010-05-18T04:28:01+09:00 Subject: Re: opening my files with a ruby program --001485f44c06d8c6d10486cf26b0 Content-Type: text/plain; charset=ISO-8859-1 And actually, I don't think you need the "cmd /c" You can just use system('start "" C:\DOCUME~1\churchil\MYDOCU~1\MYDROP~1\images\SABBAT~1.JPG') On Mon, May 17, 2010 at 3:19 PM, Charles Churchill wrote: > Besides the ones Marvin mentioned, you also have a couple of other options. > > the example below will open the JPG image using the default program used to > handle JPG files > system('cmd /c start "" > C:\DOCUME~1\churchil\MYDOCU~1\MYDROP~1\images\SABBAT~1.JPG') > > while this example will open it explicitly with mspaint > system('cmd /c start "" C:\WINDOWS\system32\mspaint.exe > C:\DOCUME~1\churchil\MYDOCU~1\MYDROP~1\images\SABBAT~1.JPG') > > > > > > On Mon, May 17, 2010 at 1:38 PM, Mark Kirby wrote: > >> i was just wondering if i wanted my program to open a file on my pc what >> would i put for example if i wanted to use ruby irb to open media player >> thanks >> -- >> Posted via http://www.ruby-forum.com/. >> >> > --001485f44c06d8c6d10486cf26b0--