From: colotechpro@... (John Reed) Date: 2004-11-24T13:53:01+09:00 Subject: Re: Windows - calling system with multiple parms Lyndon Samson wrote in message news:... > Cant you do > > system("dcpropgst.bat #{@@gsdir} #{@@gsfontdir} #{@@prttxt}") > > ? Same results as before, not passing the 2nd and 3rd parameters. I put an echo in the .bat file to see the parameters, so here is the results of the .bat file as it is called: C:\JDR\Ruby>echo C:\DCPro\gs\gs8.14\bin\gswin32.exe C:\DCPro\gs\gs8.14\bin\gswin32.exe C:\JDR\Ruby>echo ECHO is on. C:\JDR\Ruby>echo ECHO is on. C:\JDR\Ruby>C:\DCPro\gs\gs8.14\bin\gswin32.exe -I -sDEVICE= -dNOPAUSE print.ps -c quit Here is the complete .bat file: echo %1 echo %2 echo %3 %1 -I%2 -sDEVICE=%3 -dNOPAUSE print.ps -c quit I do have 3 "puts" right before the system call so I can see that all of the params have the values that I expect them to. @@gsdir = C:\DCPro\gs\gs8.14\bin\gswin32.exe @@gsfontdir = C:\DCPro\gs\gs8.14\bin\fonts @@prttxt = cdj550 Well, I'm back to the drawing board on this problem.... JReed