<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QProcess - Batch Files]]></title><description><![CDATA[<p dir="auto">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.</p>
<p dir="auto">Thanks!</p>
<p dir="auto">teak</p>
<p dir="auto">void UE4Build::on_Build_clicked() {</p>
<pre><code>QProcess process;
process.setWorkingDirectory(UE4Paths.RUNUAT_PATH);
process.start("RunUAT.bat");
process.waitForFinished();
</code></pre>
<p dir="auto">}</p>
]]></description><link>https://forum.qt.io/topic/81858/qprocess-batch-files</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 10:57:13 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/81858.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 Jul 2017 05:19:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QProcess - Batch Files on Mon, 31 Jul 2017 06:23:04 GMT]]></title><description><![CDATA[<p dir="auto">Oh my goodness... Apologies... I should have caught that. Thanks!</p>
<p dir="auto">teak</p>
]]></description><link>https://forum.qt.io/post/407609</link><guid isPermaLink="true">https://forum.qt.io/post/407609</guid><dc:creator><![CDATA[teak421]]></dc:creator><pubDate>Mon, 31 Jul 2017 06:23:04 GMT</pubDate></item><item><title><![CDATA[Reply to QProcess - Batch Files on Mon, 31 Jul 2017 05:48:45 GMT]]></title><description><![CDATA[<p dir="auto">.bat files are not executables. You need a command line interpreter tu run it i.e. instead of starting <code>RunUAT.bat</code> you would start <code>cmd.exe</code> with <code>/c RunUAT.bat</code> parameters.</p>
]]></description><link>https://forum.qt.io/post/407604</link><guid isPermaLink="true">https://forum.qt.io/post/407604</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Mon, 31 Jul 2017 05:48:45 GMT</pubDate></item></channel></rss>