<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic external program task in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/external-program-task/m-p/2023846#M84486</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;BR /&gt;I'm working on Qlik Sense&lt;BR /&gt;there is an .EXE file which runs successfully if I double-click on it&lt;BR /&gt;Now I want to create an external program task to run this exe file on schedule&lt;BR /&gt;&lt;BR /&gt;I put in the path the location which is local d:\app\app.exe&lt;BR /&gt;when I run the task it fails and I cannot know what might be wrong&lt;BR /&gt;is there a way to know what the error is?&lt;BR /&gt;knowing that in Qlik Sense there is no way to see a log file for external program tasks&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 14:55:52 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2023-01-10T14:55:52Z</dc:date>
    <item>
      <title>external program task</title>
      <link>https://community.qlik.com/t5/App-Development/external-program-task/m-p/2023846#M84486</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;BR /&gt;I'm working on Qlik Sense&lt;BR /&gt;there is an .EXE file which runs successfully if I double-click on it&lt;BR /&gt;Now I want to create an external program task to run this exe file on schedule&lt;BR /&gt;&lt;BR /&gt;I put in the path the location which is local d:\app\app.exe&lt;BR /&gt;when I run the task it fails and I cannot know what might be wrong&lt;BR /&gt;is there a way to know what the error is?&lt;BR /&gt;knowing that in Qlik Sense there is no way to see a log file for external program tasks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 14:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/external-program-task/m-p/2023846#M84486</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2023-01-10T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: external program task</title>
      <link>https://community.qlik.com/t5/App-Development/external-program-task/m-p/2131353#M91968</link>
      <description>&lt;P&gt;I had the same issue and could not directly run a .exe file using an external program task. I ended up wrapping it in a .bat file to execute it. This way, I also have the possibility to log something in order to see if the .bat/.exe file is actually executed or not.&lt;/P&gt;
&lt;P&gt;In your example I'd put the folloging code to a new file app.bat in the same directory as app.exe (i.e. D:/app/)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;set LocalPath=D:\app\

echo %date% %time% - Started app.bat &amp;gt;&amp;gt; %LocalPath%/app.log
%LocalPath%/app.exe &amp;gt;&amp;gt; %LocalPath%/app.log
echo %date% %time% - Finished app.bat &amp;gt;&amp;gt; %LocalPath%/app.log&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inside the external program task, I set the following:&lt;/P&gt;
&lt;P&gt;Path = D:\app\app.bat (and left the parameters setting empty).&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 09:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/external-program-task/m-p/2131353#M91968</guid>
      <dc:creator>peter_ku</dc:creator>
      <dc:date>2023-10-24T09:26:57Z</dc:date>
    </item>
  </channel>
</rss>

