I tried this
createobject("wscript.shell").exec "java -jar abc.jar"
but it opens a command window, runs java, then dies immediately before
it does anything. I know that "java -jar abc.jar" works properly when
called from the command line. Explicitly stating the paths to java and
abc.jar also fails.
Many thanks,
Phil
createobject("wscript.shell").RUN "java -jar abc.jar", 0, True ' if
to be synchronous
or
createobject("wscript.shell").RUN "java -jar abc.jar", 0, False ' if
to be asynchronous
Tom Lavedas
=============
http://members.cox.net/tglbatch/wsh
I tried both methods, using run. In both cases, a wscript task
started, then finished immediately. However, java never started, and
the jar file did not execute.
Do you have any other suggestions?
Many thanks,
Phil
I tried both methods, using run. In both cases, a wscript task
started, then finished immediately. However, java never started, and
the jar file did not execute.
Do you have any other suggestions?
Many thanks,
Phil
We had a problem in the jar script. Apparently the vbscript did start
java, but it exited so quickly we never saw it. Now the jar script is
correct and the vbscript is working properly.
Thanks again.
Phil