this code in command line with cscript:
//----------------------------
var tqcra = new activeXObject("Tqc.Runas");
//tqcra.Verbose=1;
if (tqcra) {
var result = tqcra.Execute("ping","localhost","user","pass","myDom");
WScript.echo("result: "+result);
}
tqcra=0;
//-------------------------
but the same code in a web page return an error 5.
anybody has an idea??
|