Hello,

   could osmeone help me? Based on Parkiet.com_1.30.zip and 
Bossa.pl_1.30[1].zip in Files in this Group I tried to make an 
autoupdate script, but doesn't work:

First:

ASCIIFormatFile = "als-moje web stranka.format";


AmiBroker = new ActiveXObject( "Broker.Application" );
WshShell = new ActiveXObject( "WScript.Shell" );

There is no problem i think. als-moje web stranka.format is a file in 
formats directory-it is OK.

1. Problem:

WshShell.Run( "C:\pokus\URLGet.exe http://akcie.vasweb.eu/data/spad-
vse.php c:\pokus\pokus.als", 0, true );

If i run(Start/Run) this - "C:\pokus\URLGet.exe 
http://akcie.vasweb.eu/data/spad-vse.php c:\pokus\pokus.als", manualy 
it is ok, but in this script(Run from amibroker) it breaks with the 
message that file can not be found-don't know why 

2. Problem
 
 When I create file c:\pokus\pokus.als manualy than if I run in 
script this:

        try
        {
                AmiBroker.Import( 0, "c:\pokus\pokus.als", 
ASCIIFormatFile );
        }
        catch( e )
        {
        WScript.echo("Faild" );
        }
        
AmiBroker.RefreshAll();

It looks like OK but does nothing:( 


So once more summary:

ASCIIFormatFile = "als-moje web stranka.format";


AmiBroker = new ActiveXObject( "Broker.Application" );
WshShell = new ActiveXObject( "WScript.Shell" );

WshShell.Run( "C:\pokus\URLGet.exe http://akcie.vasweb.eu/data/spad-
vse.php c:\pokus\pokus.als", 0, true );


try
 {
 AmiBroker.Import( 0, "c:\pokus\pokus.als", ASCIIFormatFile );
 }
catch( e )
 {
    WScript.echo("Update script finished. Your database is now up-to-
date" );
  }
        
AmiBroker.RefreshAll();

Why doesn't it work?? Thanks a lot for any advice;)



Reply via email to