Forum Discussion
1 Reply
Sort By
You're on a 64-bit OS and the 'query' command is only available in a 64-bit environment. A 32-bit CMD shell (which is what you get when you try to run a BAT file or invoke CMD.EXE from 32-bit TestComplete) does not have the query command.
To get the BAT file to run in a 64-bit environment, you'll have to invoke a 64-bit CMD shell from TestComplete and run the BAT file from that CMD shell. To do that, use the following on your TestedApps Application and Command-line parameters lines:
C:\Windows\sysnative\cmd.exe
/c <your bat filename here>
There is a little bit of info here ( Getting System Folder Paths ) and somewhat more here ( PROCESSOR_ARCHITEW6432 ) and elsewhere on the web.