<?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 Howto get task status from QMC in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Howto-get-task-status-from-QMC/m-p/854792#M299650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve just coded a button in which there is a trigger that starts a task using Windows Shell Script (QMSEDX -task =...) and at the moment it´s works fine, I can see on QMC that the task starts, running and finally ended, find the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;strCommand = strEDX &amp;amp; " -task=" &amp;amp; Chr(34) &amp;amp; strTaskName &amp;amp; Chr(34) &amp;amp; " -qms=" &amp;amp; Chr(34) &amp;amp; strServer &amp;amp; Chr(34) &amp;amp; " -password=" &amp;amp; Chr(34) &amp;amp; strTaskPassword &amp;amp; Chr(34)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Set WshShell = CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Call WshShell.Run(strCommand,0,False)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to inform to the user that the task has been finished ( OK or KO ) and my question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the status of the task? Could you provide an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 10:21:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-09T10:21:49Z</dc:date>
    <item>
      <title>Howto get task status from QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Howto-get-task-status-from-QMC/m-p/854792#M299650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve just coded a button in which there is a trigger that starts a task using Windows Shell Script (QMSEDX -task =...) and at the moment it´s works fine, I can see on QMC that the task starts, running and finally ended, find the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;strCommand = strEDX &amp;amp; " -task=" &amp;amp; Chr(34) &amp;amp; strTaskName &amp;amp; Chr(34) &amp;amp; " -qms=" &amp;amp; Chr(34) &amp;amp; strServer &amp;amp; Chr(34) &amp;amp; " -password=" &amp;amp; Chr(34) &amp;amp; strTaskPassword &amp;amp; Chr(34)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Set WshShell = CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Call WshShell.Run(strCommand,0,False)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to inform to the user that the task has been finished ( OK or KO ) and my question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the status of the task? Could you provide an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 10:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Howto-get-task-status-from-QMC/m-p/854792#M299650</guid>
      <dc:creator />
      <dc:date>2015-06-09T10:21:49Z</dc:date>
    </item>
  </channel>
</rss>

