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 <gymbrall / gmail.com>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 <mark42 / live.co.uk> 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/.
>>
>>
>