hi! i have a couple of questions:
- how do i run a command and read the stdout? i found the WScript.Exec command which surprisingly works, but it always briefly opens a console window when i run ffmpeg, which is annoying. there doesn't seem to be a flag for it like there is for WScript.Run. i'm using ffmpeg to calculate an audio-only hash of files.
- i asked in a new thread about the differences between SpiderMonkeyPanel and JScript 3, the thread probably drowned and i should have asked in this thread in the first place.
thanks a lot! 
You can send command output to a txt file and then read the file with SMP.
You can start an executable in a hidden window btw, but just ussing run command. Why do you want to use Exec?
But there is no further interaction between the command line and SMP.
const WshShell = new ActiveXObject('WScript.Shell');
function _runHidden() {
try {
WshShell.Run([...arguments].map((arg) => {return '"' + arg + '"';}).join(' '), 0, true);
return true;
} catch (e) {
return false;
}
}
//_runHidden(folders.xxx + 'helpers-external\\fpcalc\\fpcalc.bat', filePath, fpcalcJSON, folders.xxx + 'helpers-external\\fpcalc\\fpcalc.exe');
fpcalc.bat
@ECHO OFF
REM Helper to execute fpcalc.exe (%3) on input (%1) and save output to file (%2)
REM Retrieves raw fingerprint as json
%fpPath% -raw -json -length 240 %1>%2