PDA

View Full Version : VB Script



narara
06-13-2007, 10:13 PM
So, has any one successfully used VBScript Interface in SB?
If so could you possibly drop an example here.

The Help is so useless and cryptic....

narara
06-13-2007, 11:43 PM
Actually, by trying different things out I have discovered that VB Scripts
can be run via SB , but only if you do not use WHS (Windows Host Scripting) in them.
Although the same script may perfectly work on the same machine via the command window - it will not work via SB.

So what is the solution?

I am trying to use "Run Program" for my script - it works and it is possible to pass parameters in via the command string but impossible to get any error code out.
How can I get an Error Code out ???
???

Regards

linder
06-13-2007, 11:45 PM
Did you check the "Run VBScript.sb6" example script?

linder
06-13-2007, 11:48 PM
What about using %_SB_ERRORCODE%?

Return Values

If the function succeeds, the %_SB_ERRORCODE% return value is zero.

If the function fails, the return value is a system error code. A return value of 259 means the application is still running!