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

[amibroker] TJ and All.



PureBytes Links

Trading Reference Links

Has anyone autoupdate AB using MS's Task Scheduler?  I wrote the 
following script and want to know if I need to save/unload the first 
database before loading the second database.  TIA.


/* this script is to use with scheduled task to updates AB databases 
at midnight. */

AmiBroker = new ActiveXObject( "Broker.Application" );
AmiBroker.LoadDatabase ("C:\\Program Files\\AmiBroker\\US-Stocks");
WshShell = new ActiveXObject ("WScript.Shell");
WshShell.Run ("C:\\Program 
Files\\AmiBroker\\AmiQuote\\quote.exe /autoupdate", 1, false);

AmiBroker.LoadDatabase ("C:\\Program Files\\AmiBroker\\intraEOD");
WshShell.Run ("C:\\Program 
Files\\AmiBroker\\AmiQuote\\quote.exe /autoupdate", 1, false);






Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/