[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] OT: Jscript Help


  • Date: Tue, 5 Jan 2010 12:17:49 -0800
  • From: "ta" <tagroups@xxxxxxxxxxxxx>
  • Subject: [amibroker] OT: Jscript Help

PureBytes Links

Trading Reference Links



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);

}



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___