I asked a programmer to create exe file for me to manipulate
AB data files. I want to time how long it takes for it to accomplish various
tasks. So, I wrote the following script to measure how long it take to run the
mytask.exe file. However, it does not work as intended. Any help or suggestions
would be appreciated. TIA
var WshShell = new ActiveXObject("WScript.Shell");
var Starting_Time = new Date();
var oExec = WshShell.Exec("c:\\Amibroker\\mytask.exe /f
");
if( oExec.status == 0 )
{
var
Ending_Time = new Date();
WScript.Echo("Starting_Time:
" + Starting_Time + "Ending_Time: " + Ending_Time);
}