(Using current latest TCMD on Win10 x64) I'm reading variables from a JSON file with
This works just fine. If the element doesn't exist TCC writes to the console
However, I'm unable to suppress this error message - there is to /q for the SET command, and SET ... >nul 2>nul doesn't seem to work on this particular messages (probably from whatever-library TCC uses to manage JSON?).
The help...
Read more
Code:
SET variable=%@JSONXPATH[/json/test/[1]/element]
This works just fine. If the element doesn't exist TCC writes to the console
Code:
Invalid XPath. "/json/test/[1]/element"
However, I'm unable to suppress this error message - there is to /q for the SET command, and SET ... >nul 2>nul doesn't seem to work on this particular messages (probably from whatever-library TCC uses to manage JSON?).
The help...
Read more