- Set objShell = WScript.CreateObject("WScript.Shell")
- Set objExecObject = objShell.Exec("java -classpath JavaCode.jar JavaClassName")
- Do Until objExecObject.StdOut.AtEndOfStream
- Results = Results + " " + objExecObject.StdOut.ReadLine()
- Loop
Monday, May 02, 2011
Executing Java from VBScript
This post is simple, it's just some Visual Basic Script for executing a jar and keeping the text output in a variable:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment