Page 1 of 1

Command not usable through runret() or command prompt

Posted: 16 Jul 2024 15:34
by o7blue
I recently installed jq (that is, I downloaded the jq binary from https://github.com/jqlang/jq/releases, and put it in C:\Windows\System32\jq.exe)

Now when I open up powershell (start right click menu) or the command prompt (running cmd in eplorer) jq runs ok.

But trying to do the same through the command prompt spawned via XY, or runret() results in the command not being found:

'jq' is not recognized as an internal or external command, operable program or batch file.

When I echo %PATH% C:\Windows\system32 is the first entry, I'm not sure why jq isn't found?

Re: Command not usable through runret() or command prompt

Posted: 16 Jul 2024 15:43
by highend
Read the help file about "WOW64 redirection"...

Re: Command not usable through runret() or command prompt

Posted: 16 Jul 2024 15:49
by o7blue
Thank you highend, wasn't aware of this.
Moving my binary to C:\Windows\SysWOW64 solves this.