Solved QProcess - Batch Files
-
Hi... First time poster... been at this for about a week and its a ton of fun. Anyway, I'm stuck on QProcess... I can't seem to get my external batch file to run. Been reviewing the documentation (which is excellent), but I'm still stuck. Any help would be appreciated. Tried execute, start, etc. Also, I've verified the path with a qmessagebox, its correct.
Thanks!
teak
void UE4Build::on_Build_clicked() {
QProcess process; process.setWorkingDirectory(UE4Paths.RUNUAT_PATH); process.start("RunUAT.bat"); process.waitForFinished();
}
-
.bat files are not executables. You need a command line interpreter tu run it i.e. instead of starting
RunUAT.bat
you would startcmd.exe
with/c RunUAT.bat
parameters. -
Oh my goodness... Apologies... I should have caught that. Thanks!
teak