Austin Ziegler
11/21/2004 2:36:00 PM
On Sun, 21 Nov 2004 12:43:07 +0900, John Reed <colotechpro@yahoo.com> 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