Below is the code I have so far to run jsonchk.exe, however jsonchk executes in a cmd window and disappears almost instantly before I can see any output.
jsonchk.exe is ran by jsonchk < param, so strLine is provided.
So my question is, how can I store the output produced by jsonchk.exe into a .txt file and for each function call in the for loop, APPEND the new output to that .txt file?
for each strIn in arrFileLines
set objShell = wscript.CreateObject("WScript.Shell")
objShell.Run "./jsonchecker/bin/Release/jsonchk.exe < "&strLine, 4, True
set objShell = Nothing