From: Austin Ziegler Date: 2004-11-21T23:36:29+09:00 Subject: Re: Windows - calling system with multiple parms On Sun, 21 Nov 2004 12:43:07 +0900, John Reed wrote: > I'm having a problem getting a system call to Windows XP to work. I > upgraded my Ruby from 1.6.8 to 1.8.1 recently. > > System info: > > >ruby ���v > ruby 1.8.1 (2003-12-25) [I-386-mswin32] > > FWIW, my .bat file is passing the directory path for ghostscipt exe > and the path for the ghostscript font directory, as well as the > printer code for the ghostscript emulation. > > This line of code worked when I was on 1.6.8: > > system("dcpropgst.bat", [@@gsdir, @@gsfontdir, @@prttxt]) Try changing this to: system("dcpropgst.bat", @@gsdir, @@gsfontdir, @@prttxt) If you can't predict how many parameters, do this: params = [ @@gsdir, @@gsfontdir, @@prttxt ] system("dcpropgst.bat, *params) -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca