<?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: How to run a distribution task from a batch file? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326042#M1308639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could configure a distribution task and trigger it using "on an external event".&amp;nbsp; Then call the task from you batch program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See section 27.5 &lt;STRONG&gt;Triggering EDX Enabled Tasks&lt;/STRONG&gt; in the &lt;STRONG&gt;QlikView Server Reference Manual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2011 13:01:44 GMT</pubDate>
    <dc:creator>bnichol</dc:creator>
    <dc:date>2011-06-28T13:01:44Z</dc:date>
    <item>
      <title>How to run a distribution task from a batch file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326038#M1308628</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;Does anyone know if it's possible and how to run a distribution task from a batch file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326038#M1308628</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a distribution task from a batch file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326039#M1308631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bump it up...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 11:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326039#M1308631</guid>
      <dc:creator />
      <dc:date>2011-06-28T11:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a distribution task from a batch file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326040#M1308633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Section 25.2 &lt;STRONG&gt;Reloading a file from the command line&lt;/STRONG&gt; in the &lt;STRONG&gt;QlikView Server Reference Manual &lt;/STRONG&gt;explains it fairly well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example of the type of batch script that I use...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;set AppProgram="C:\Program Files\QlikView\Publisher\Distribution Service\QlikviewDistributionService.exe"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;set QvwName={Document Name}.qvw&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;set ProcessName={Document Name}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;set QvwPath=C:\ProgramData\QlikTech\Publisher\Sourcedocuments\{Document Path}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%AppProgram% -out=%QvwPath%\%ProcessName%_reload_%date%.log -r=%QvwPath%\%QvwName%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF %ERRORLEVEL% NEQ 0 goto Error&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;@echo Finished-%date% %time%&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EXIT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;:Error&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;blat -body "%date% %time%" -to "{address}" -server "smtp.company.com" -f "{From Address}" -subject "{ProcessName} - Reload Failed"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;@echo Finished-%date% %time%&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EXIT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The blat line allows me to receive email notification if the reload fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 12:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326040#M1308633</guid>
      <dc:creator>bnichol</dc:creator>
      <dc:date>2011-06-28T12:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a distribution task from a batch file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326041#M1308636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, but I need to distribute the file and not reload it. That's why I want to run a distribution task and not a reloading one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 12:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326041#M1308636</guid>
      <dc:creator />
      <dc:date>2011-06-28T12:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a distribution task from a batch file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326042#M1308639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could configure a distribution task and trigger it using "on an external event".&amp;nbsp; Then call the task from you batch program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See section 27.5 &lt;STRONG&gt;Triggering EDX Enabled Tasks&lt;/STRONG&gt; in the &lt;STRONG&gt;QlikView Server Reference Manual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 13:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326042#M1308639</guid>
      <dc:creator>bnichol</dc:creator>
      <dc:date>2011-06-28T13:01:44Z</dc:date>
    </item>
    <item>
      <title>How to run a distribution task from a batch file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326043#M1308642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that I am not very good in that kind of scripting and the manual does not show a real example...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 13:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326043#M1308642</guid>
      <dc:creator />
      <dc:date>2011-06-28T13:07:18Z</dc:date>
    </item>
    <item>
      <title>How to run a distribution task from a batch file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326044#M1308646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a good link for EDX help, including a script file that you can modify...&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/15988"&gt;http://community.qlik.com/thread/15988&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 13:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326044#M1308646</guid>
      <dc:creator>bnichol</dc:creator>
      <dc:date>2011-06-28T13:12:05Z</dc:date>
    </item>
    <item>
      <title>How to run a distribution task from a batch file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326045#M1308649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/bnichol" id="jive-573011723613595680201" style="background-color: #f9f9f9; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;bnichol&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain what do you mean by document name here is it filename.qvw or the task name? And the QVWpath is it the QEMC path or the path where qvw file physically exists? Plus, in the blat part below - address meaning our email address and from address meaning ?? Please explain in detail I am really confused about it. I am trying to use this code as a batch fiel to trigger my qvw task present in QEMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;EM&gt;set AppProgram="C:\Program Files\QlikView\Publisher\Distribution Service\QlikviewDistributionService.exe"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;set QvwName={Document Name}.qvw&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;set ProcessName={Document Name}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;set QvwPath=C:\ProgramData\QlikTech\Publisher\Sourcedocuments\{Document Path}&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;EM&gt;%AppProgram% -out=%QvwPath%\%ProcessName%_reload_%date%.log -r=%QvwPath%\%QvwName%&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;EM&gt;IF %ERRORLEVEL% NEQ 0 goto Error&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;EM&gt;@echo Finished-%date% %time%&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EXIT&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;EM&gt;:Error&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;blat -body "%date% %time%" -to "{address}" -server "smtp.company.com" -f "{From Address}" -subject "{ProcessName} - Reload Failed"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;@echo Finished-%date% %time%&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EXIT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Avi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 21:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326045#M1308649</guid>
      <dc:creator />
      <dc:date>2011-12-07T21:02:22Z</dc:date>
    </item>
    <item>
      <title>How to run a distribution task from a batch file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326046#M1308650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This script will reload a qvw file(document name), but it does not use the task identified in QEMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To call a Task identified in QEMC using EDX please refer to my previous postings in this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The open source e-mail command line tool I'm using is called blat(&lt;A href="http://www.blat.net/"&gt;http://www.blat.net/&lt;/A&gt;), but you can use any e-mail tool. To understand the command line format, please refer to documentation on the web site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 13:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-distribution-task-from-a-batch-file/m-p/326046#M1308650</guid>
      <dc:creator>bnichol</dc:creator>
      <dc:date>2011-12-08T13:22:30Z</dc:date>
    </item>
  </channel>
</rss>

