xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ch...@netstyle.ch
Subject Re: fop and .bat
Date Mon, 16 Sep 2002 13:28:58 GMT

I am not exactly sure what you intend to do because the code you
transmitted has nothing to do with a Batch file. It's normal
JavaScript Code to start fop using Windows Scripting Host. Do you
call this script from a batch file? More information would perhaps be

What I know is that running the shell using Windows Scripting Host
does open a (not closeable) DOS window on Windows 98 but not on W2K.
For more infos about this effect consult http://groups.google.com
where you will find a lot of articles about this topic.

A documentation about Windows Scripting Host and its objects and
methods you find at http://msdn.microsoft.com/scripting


Ch. Wysseier

---- Original Message ----
Von: cyril@planetexml.com
An: fop-user@xml.apache.org, 
Betreff: Re: fop and .bat
Datum: Mon, 16 Sep 2002 14:35:30 +0200

>I run a fop application via a .bat.
>Problem, with this code:
>var WSHShell = new ActiveXObject("Wscript.Shell");
>var theCmdLine = "fop2.bat" ;
>WSHShell.Run( theCmdLine, 1, true );
>I have to first close the Dos window before the pdf file opens.
>Some one knows how I can do so that the DOs window automatically 
>I've tried to chang the second parameter in the line 
>WSHShell.Run( theCmdLine, 1, true );
>but without success.
>Thanks in advance for your responses,
>Cyril Vidal
>Email: cyril@planetexml.com
>Web: http://www.planetexml.com

View raw message