QScriptEngine is a JavaScript engine, not a Windows Batch interpreter
It evaluates JavaScript, not batch files.
As you have already discovered, the correct way to run an external program is through QProcess.
Check the QtScript documentation on how to expose C++ to the script side.
Cheers,
_





Reply With Quote

Bookmarks