<?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 Re: File watcher File - Qliksense reload task complete in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/File-watcher-File-Qliksense-reload-task-complete/m-p/1856061#M70652</link>
    <description>&lt;P&gt;Thank you Andrei so much. I think this should help with my usecase.&lt;/P&gt;
&lt;P&gt;I will give it a try and let you know.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 13:23:21 GMT</pubDate>
    <dc:creator>jpjust</dc:creator>
    <dc:date>2021-11-05T13:23:21Z</dc:date>
    <item>
      <title>File watcher File - Qliksense reload task complete</title>
      <link>https://community.qlik.com/t5/App-Development/File-watcher-File-Qliksense-reload-task-complete/m-p/1855286#M70590</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Is it possible to export an txt file or some thing at the end of the load script?&lt;/P&gt;
&lt;P&gt;Then I can use that file as an file watcher for other programs to run. Other way of telling that the qliksense reload task is complete.&lt;/P&gt;
&lt;P&gt;Any other ideas are welcome as well.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 21:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/File-watcher-File-Qliksense-reload-task-complete/m-p/1855286#M70590</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-11-03T21:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: File watcher File - Qliksense reload task complete</title>
      <link>https://community.qlik.com/t5/App-Development/File-watcher-File-Qliksense-reload-task-complete/m-p/1855480#M70604</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;In your use case scenario you will have to use the &lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;EXECUTE &lt;/STRONG&gt;&lt;/SPAN&gt;[1] command.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Here are the steps that you should follow:&lt;/P&gt;

&lt;OL&gt;
 &lt;LI&gt;Create a folder that you want to monitor for a file creation. e.g. "&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;My Location&lt;/STRONG&gt;&lt;/SPAN&gt;" folder on "&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Desktop&lt;/STRONG&gt;&lt;/SPAN&gt;"&lt;/LI&gt;
 &lt;LI&gt;Open Notepad and copy paste: &amp;gt;&amp;gt; &lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;"echo Qlik Sense reload was completed! &amp;gt; "C:\...\Desktop\My Location\log.txt"&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;lt;&amp;lt;&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN style="color:#c0392b"&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color:#7f8c8d"&gt;&lt;EM&gt;The quotes are included in the statement, because if your path has spaces it will fail. But using quotes will work every time, either the path has spaces or not.&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;Click on &lt;STRONG&gt;Save As&lt;/STRONG&gt;&lt;/LI&gt;
 &lt;LI&gt;Choose Name "&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;executable.bat&lt;/STRONG&gt;&lt;/SPAN&gt;"&lt;/LI&gt;
 &lt;LI&gt;Choose Save as type&amp;nbsp;"&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;All files (*)&lt;/STRONG&gt;&lt;/SPAN&gt;"&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN style="color:#c0392b"&gt;&lt;STRONG&gt;Note: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;EM&gt;You have to make sure that your saved file is NOT named&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#c0392b"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;executable.bat.txt&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;EM&gt; but is named&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#16a085"&gt;&lt;EM&gt;&lt;STRONG&gt;executable.bat&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;EM&gt;. Otherwise, it will not get executed by CMD.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;In &lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;Qlik Sense&lt;/STRONG&gt;&lt;/SPAN&gt; you have to setup some configurations first, so follow the steps in the official documentation [1] carefully.&lt;/LI&gt;
 &lt;LI&gt;Now open &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;Data load editor&lt;/STRONG&gt;&lt;/SPAN&gt; and add the following statement at the end of the script:&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;Execute "C:\Windows\System32\cmd.exe" /R "C:\Users\...\Desktop\My Location\executable.bat"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;This will use the CMD in the defined path (first part of the command) and will execute the "&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;executable.bat&lt;/STRONG&gt;&lt;/SPAN&gt;" that you have created.&amp;nbsp;&lt;/LI&gt;
 &lt;LI&gt;When the bat file is executed, you will see that the "&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;log.txt&lt;/STRONG&gt;&lt;/SPAN&gt;" will be created.&lt;/LI&gt;
 &lt;LI&gt;You can modify the text that you are saving in the bat file to make it unique each time e.g. saving the current&amp;nbsp;date and time that the log.txt was created. This way when you read the file with another software&amp;nbsp;you will know if the file was created recently etc.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Here is my result after &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;Data load editor&lt;/STRONG&gt;&lt;/SPAN&gt; finished execution:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/f7041fe5-9d37-45da-b7f0-d0ea71b052e8.default.png" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I hope that this information was helpful.&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;---&lt;/P&gt;

&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Execute.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Execute.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 11:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/File-watcher-File-Qliksense-reload-task-complete/m-p/1855480#M70604</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2021-11-04T11:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: File watcher File - Qliksense reload task complete</title>
      <link>https://community.qlik.com/t5/App-Development/File-watcher-File-Qliksense-reload-task-complete/m-p/1856061#M70652</link>
      <description>&lt;P&gt;Thank you Andrei so much. I think this should help with my usecase.&lt;/P&gt;
&lt;P&gt;I will give it a try and let you know.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 13:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/File-watcher-File-Qliksense-reload-task-complete/m-p/1856061#M70652</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-11-05T13:23:21Z</dc:date>
    </item>
  </channel>
</rss>

