Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

In TCL i need call VBScript and based on VBScipt need to proceed TCLScript or exitthe TCL Script.

Status
Not open for further replies.

mekasampath

Programmer
Feb 11, 2020
1
IN
Hello All,

I am new to TCL Scripting i have an existing tcl script in that i need to invoke/call VBScript file based on the return value of the VBSCript TCL script should terminate or proceed.
Kindly help me in achieving.

Sample code :

tk_messageBox -message "This is starting"

set res [exec cmd.exe /c start G:/TestSample.VBS]

tk_messageBox -message "This is starting 2"

Thanks & Regards,
Sampath
 
You will never get the vbscript result if you launch it as a separate process. You need to launch it as part of the current process.

If you are executing vbscript, it should be cscript.exe not cmd.exe.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top