*
The moose likes Servlets and the fly likes Running VBScripts from servlet. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Running VBScripts from servlet." Watch "Running VBScripts from servlet." New topic
Author

Running VBScripts from servlet.

Thomas O'Reilly
Greenhorn

Joined: Jan 12, 2013
Posts: 3
Hi everyone. I'm having a problem running a VBscript from my servlet.
I'm getting the runtime of windows and calling "cscript" command and
passing the VBscript. This works fine in a normal java application running on
the machine but fails in the servlet. What i'm doing is getting processor load.

The first line to be returned from calling the VBscript is "Microsoft (R) Windows Script Host Version 5.8",
so it works up until then but when it gets to the data being returned it crashes. Hope I explained myself
correctly. Anybody any ideas what's going wrong? Thanks
Thomas O'Reilly
Greenhorn

Joined: Jan 12, 2013
Posts: 3
Never mind if figured it out. Wasn't telling giving the script the right address.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Thanks for posting back with your findings.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Thomas O'Reilly
Greenhorn

Joined: Jan 12, 2013
Posts: 3
No problem. I thought there might of been a problem with VBscripts being ran on a servlet but it was human error at the end of the day.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running VBScripts from servlet.
 
Similar Threads
Connecting to the webserver from simple java program with main method
Tomcat System.out from a Thread
debugging a javabean called by jsp
Linking Java to Excel
Opening shortcuts using Java?