Windows programs are not CMD programs, was: Running Quote.exe through .abb

I'd like to be able to use schedule to open a specific database, then update those quotes, then save those quotes and have the programe close.

I start with a .BAT;

"C:\Program Files\AmiBroker\broker.exe" /database "C:\Program Files\AmiBroker\Databases\YahooEOD" /runbatch "C:\Program Files\AmiBroker\Formulas\Systems\#######\" /exit

The look like this.

Autoupdate.BAT reads;

"C:\Program Files\AmiBroker\AmiQuote\Quote.exe" /autoupdate /exit

The task in quote specifies that it has finished

But Amiquote does not exit as per the command from the .BAT, meaning that the .abb cannot move on to the next step in the sequence. This can be problematic for a number of reasons. Is there a way that Amiquote can be closed once it finished downloading, or is there a different way to address this problem?

Don't use extra .BAT file to run AmiQuote.
Run AmiQuote directly WITHOUT .BAT

AmiQuote can be started DIRECTLY from .ABB (AmiBroker batch).

User Execute and Wait DIRECTLY on Quote.exe.


AmiQuote is FULL FEATURED WINDOWS program, it is not MS DOS or "command line" only program. If you run it from .BAT it is STARTS asynchronously .BAT file does not know anything about it.

If you ever wished to run WINDOWS programs from .BAT files you really have to learn how to do it properly (via start /wait command)

1 Like

For some reason that did not work.