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

RE: [amibroker] Re: Amibroker: my 3GHz PC CPU is only used 50%



PureBytes Links

Trading Reference Links




Hello,
 
URLGet is not a JScript function. 
You can not type it directly in JScript. It is an external program that you have 
to "run" from JScript via Run method WshShell object, 
as shown in the newsletter, <FONT face=Arial 
size=2>that I pointed to you before: <A 
href="">http://www.amibroker.com/newsletter/02-2001.html
 

/* first, create Shell object that 
allows us to run external programs */WshShell = new 
ActiveXObject( "WScript.Shell" );
/* this handy function takes just URL 
and local file name and calls URLGet program to do the work 
*/function Download( URL, 
filename ){

  if( WshShell.Run( "URLGet " + URL + " " + 
  filename, 0, true ) == 0 ) return true;
  WScript.echo("Download of " + URL + " failed." 
  );
  return false;
}
/* Now you can use above function 
to download and store the file */  
Download( "<A 
href=""><FONT 
size=3>http://203.101.53.61/ACC.txt"; 
"c:\\mydata\\ACC.txt" ); 
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=prash454@xxxxxxxxxxxxxxxxx 
  href="">Prashanth 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Thursday, April 29, 2004 8:46 
  AM
  Subject: [amibroker] Import over the 
  Internet
  
  Hi,
   
  TJ responded to my query and pointed out to a 
  link where I found the required information. Thanks you very much TJ. But I 
  have a small problem. I placed the following script into a file and named it 
  T1.js
   
  URLGet <A 
  href="">http://203.101.53.61/ACC.txt 
  c:\mydata\ACC.txt
   
  But Microsoft Script Editor returns an error. 
  After trying out various other things I ran the same through the "Run" 
  command, and it performs fine. 
   
  Am I missing something?
   
  Thanks in Advance
   
  PrashanthSend BUG 
  REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.