Use full path, was: Problem with AmiQuote 4.17 command line invocation?

<By the way, thanks to Tomas for the excellent and fast support provided following the Yahoo change in Sept. where download of historical data became fee-based.>

My current problem is this, only discovered now because I just downloaded AmiQuote 4.17. Suppose I have a file containing ticker names called “tickers.tls”. With AmiQuote 4.15 I was able to do this at the command line.

quote.exe <relative pathname to tickers.tls> /download /close

With AmiQuote 4.17, the above invocation always returns this error.

"C:\Program Files (x86)\AmiBroker\AmiQuote\tickers.tls was not found"

It seems like 4.17 doesn’t know how to use relative paths to files from the current working directory, whereas 4.15 did.

If I do this with AmiQuote 4.17

quote.exe <fully qualified pathname to tickers.tls> /download /close

then it works as expected.

I searched the forum for other observations of this behavior but didn’t find any. Is this change intentional or should it be considered a bug?

In case it matters, I'm using Windows 11.

You can't use relative paths in command line because they are unreliable. Always use FULL PATH. If current directory is wrong and quote.exe can't be found in it, AmiQuote must change the current working directory to the location where the EXE is to be able to read its configuration files that are supposed to be where EXE is. That would make your relative path not working.

2 Likes