Limitation when using QAP in a command line window (CMD)
LaurentHaas > 2025-05-09 07:42
Hi Jean
When you use QAP in a “CMD” command line window, the directory change only works correctly if you are already on the correct drive. In fact, QAP only sends the command “CD {FolderPath}”, which fails if the current drive is different from the one specified in FolderPath. This has been the case for decades.
The solution would be to send the command :
{drive:} && CD {folderpath}
for example:
C: && CD “C:\Program Files”
This way, regardless of the current drive, the command will first change the current drive to the FolderPath drive, then send a CD which will define the correct directory.
This only affects the CMD.EXE command prompt, not the PowerShell console, which is unaffected, but I'm afraid you can't make the distinction in the code.