jQuery in Action, 3rd edition
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Running VBScripts from servlet." Watch "Running VBScripts from servlet." New topic

Running VBScripts from servlet.

Thomas O'Reilly

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

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

Joined: Jan 10, 2002
Posts: 63548

Thanks for posting back with your findings.

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

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.
It's not a secret anymore!