Help for download multiple TLS file.

#1
I use Amiquote for automatic update my database Via Jscript:
The script work well but I have a problem:

1. How I can do to add another .tls file below in the script? (two or more .tls)
I try to add another row [AQ.Open] but don't work.


Can Anyone help me?
Thanks


---------------------------------------------------------------------------------

AB = new ActiveXObject( "Broker.Application" );
AB.LoadDatabase("C:\\....");

AQ = new ActiveXObject("AmiQuote.Document");


AQ.Open("D:\\......tls"); // <----------------



FromDate = new Date(2016,10,1,0,0,0);
ToDate = new Date; // current time

AQ.From = FromDate.getVarDate();
AQ.To = ToDate.getVarDate();

AQ.AutoImport = true;

/* SOURCE */

AQ.Source = 0;

// 0 - Yahoo Historical
// 1 - Yahoo Current
// 2 - Yahoo Fundamental
// 3 - Yahoo Fundamental Extra
// 4 - Google Finance
// 5 - MSN Historical --- NO WORK
// 6 - Forex
// 7 - Yahoo Intraday
// 8 - Google Intraday
// 9 - Quandl --- NO WORK

AQ.Download();

// wait until download and import is finished

while( AQ.DownloadInProgress || AQ.ImportInProgress )
{
WScript.sleep(5000); // wait 5 seconds before querying status again
}

AB.SaveDatabase();

-----------------------------------------------------------------------------
 

Similar threads