- Aug
- 2,058
- 83
Hi,
I am using TCC 11.00.52 Windows XP [Version 5.1.2600], TCC Build 52 Windows XP Build 2600 Service Pack 3.
I have been using CSCRIPT within my .BTM files to execute .xbs scripts for quite some time, and all works well.
I decided today to try the internal SCRIPT command. I verified that SCRIPT is indeed an internal command by doing the following;
When I run the SCRIPT command by itself, it produces the following;
Seeing that the SCRIPT command recognizes the XBScript, I tried to use it in a .btm as follows;
Well, that didn't work. Next, I tried
Ditto, did not work. When I say "did not work", I mean that no output was displayed on the console, and the execution time is rapid, meaning did not work.
If I use;
the script runs without any problems, reads the database, and outputs the desired results to the console.
Am I using the syntax correctly with the SCRIPT command to execute my .xbs files?
Here is a sample, test.xbs
Running this with CSCRIPT works, but not with SCRIPT.
Joe
I am using TCC 11.00.52 Windows XP [Version 5.1.2600], TCC Build 52 Windows XP Build 2600 Service Pack 3.
I have been using CSCRIPT within my .BTM files to execute .xbs scripts for quite some time, and all works well.
I decided today to try the internal SCRIPT command. I verified that SCRIPT is indeed an internal command by doing the following;
Code:
which script
script is an internal command
Code:
XML
XBScript
VBScript
VBScript.Encode
JScript
JScript.Encode
PerlScript
Code:
script /E xbscript lcba.xbs
Code:
script lcba.xbs
If I use;
Code:
cscript lcba.xbs
Am I using the syntax correctly with the SCRIPT command to execute my .xbs files?
Here is a sample, test.xbs
Code:
#include "wsh.ch"
? "Welcome to XBScript"
Joe