"DM" <xx / here.com> wrote in message news:997C8B513A836F4C.1753045C389573F4.0D1253B4EBD6F4A6 / lp.airnews.net... > From DOS command line under Win98 > > command.com /cecho test > command.com /cecho "test" > > returns > test > "test" > > as expected. > > However a small ruby (Windows Installshield version V1.61) script: > > print `command.com /cecho test` > print `command.com /cecho "test"` > > returns > test > > The second command.com spawn never happens!! > Same results using system(). > > Any help would be appreciated... > > PS. My production application is actually spawning > command line zip testing using long filenames > containing embedded spaces, so these have to be quoted... > > eg: unzip -t "A long filename.zip". > Hi, You can define your own system in Windows regardless of build versions require 'Win32API' def mysystem(command) wsystem = Win32API.new("crtdll", "system", ['P'], 'L') wsystem.Call(command) end mysystem('echo "test"') Hee-Sob Park.