Forum Discussion

jloyzagawh's avatar
jloyzagawh
Contributor
9 years ago

running .vbs script from jscript testcomplete

I want to run this .vbs script C:\pwc\PWC-QTP\runit.vbs

 

Can anybody help me? 

I started here



var strExe = "C:\pwc\PWC-QTP\runit.vbs -h1 -d33";
var objShell = new ActiveXObject("WScript.Shell");
var objScriptExec = objShell.Exec(strExe);
var strExeOut = objScriptExec.StdOut.ReadAll();

No RepliesBe the first to reply