I think it just depends on where the image files are stored…
In general any program to which you pass over a file as a parameter will be called by
<pathToProgram> <pathToFile>
Path may be absolute or relative. You may skip the path to the directory of the executable, if this path is already included in the %PATH% variable though.
I don’t know if the analyzer tool has changed regarding the method of looking for image files. Perhaps some default locations (e.g. the Pictures folder) are included, where the tool will automatically look for pictures and perhaps that changed. No idea, but this is something @Qor may answer better
These files are no longer on my computer since I had to do a system restore. However, as I recall they were placed in the darktable\bin folder when the command was originally run which is not happening now.
Just as a side-note: I would recommend not putting anything additional into the Program Files folder, because it’s a general “security thing” one should avoid; and you always need to confirm access rights when doing so…
Sorry I’m totally puzzled now, but perhaps I got something completely wrong. So do I understand you right, that the image and XMP sidecar are no longer on your computer? If so, how do you expect darktable-cli.exe being able to process an image that is not there?
This it what I meant by “…this solves the problem…”: if the image you reference in the command line is not there, then you get the error message about the image file not being there…