<?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 call a batch file with parameters from qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529230#M197843</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 am also stuck in similar requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have chart with link , when users click link , batch file needs to be triggered &amp;amp; pass values from Qlikview. This batch file is basically gonna open another app with the parameters passed from QV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Format is&lt;/P&gt;&lt;P&gt;'\\server\xyz.bat' -ab &amp;lt;Values from QV&amp;gt;&amp;nbsp; -cd &amp;lt;Values from QV&amp;gt; -de&amp;lt;values from QV&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;** -ab , -cd , -de are the parameters name for bat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently i am trying to use link repsenation of chart &amp;amp; using &amp;lt;url&amp;gt; '\\server\xyz.bat'&amp;nbsp; It works fine without parameter. But as soon as i add parameter , it doesnt execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with macro coding. So if you can send me step by step instructions or way to do without macro it will really help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your response !!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 21:08:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-28T21:08:09Z</dc:date>
    <item>
      <title>How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529217#M197830</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;I need to call a batch file from qlikview script and also send 5 parameters to batch file. So can anyone send me the script .&lt;/P&gt;&lt;P&gt;I tried below script but didnt work .&lt;/P&gt;&lt;P&gt;Execute cmd.exe /C E:\Qvd to be pushed to Mysql\Textfile.bat 3313 DatamapLoad Deletemetemp;&lt;/P&gt;&lt;P&gt;where 3313 ,DatamapLoad and Deletemetemp are arguements to be passed to batch file .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 06:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529217#M197830</guid>
      <dc:creator />
      <dc:date>2013-08-26T06:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529218#M197831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please explain in details what is exact you are looking for ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 07:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529218#M197831</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-08-26T07:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529219#M197832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to execute a bat file through Qlikview script. After relaod of the applicatio .bat file needs to execute.&lt;/P&gt;&lt;P&gt;Execute cmd.exe /c "E:\Qvd to be pushed to Mysql\Textfile.bat" works well.No issues uptill now. But when i try to pass the parameters to batch file ,it doesnt work .&lt;/P&gt;&lt;P&gt;When i execute the script through cmd it works fine .&lt;/P&gt;&lt;P&gt;That means issue is&amp;nbsp; with the qlikview. Does QV allow us to pass parameters to batch file in first palce ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 07:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529219#M197832</guid>
      <dc:creator />
      <dc:date>2013-08-26T07:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529220#M197833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Qlikview Allows us to pass parametes along with batch file &lt;/P&gt;&lt;P&gt;2. You can execute the script through qvw&amp;nbsp; create new qvw2&amp;nbsp; in script edit &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type following commands &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXECUTE cmd.exe /C C:\Export-Email-Automation\TriggerMacro.bat;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXIT SCRIPT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; moment when you reload qvw2&amp;nbsp; your batch job will execute .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this you are looking for .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 07:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529220#M197833</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-08-26T07:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529221#M197834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the WScript.Shell object.&lt;/P&gt;&lt;P&gt;The following is an example to run a preview report from NPrinting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="45877" alt="Shell script.png" class="jive-image" src="/legacyfs/online/45877_Shell script.png" style="width: 620px; height: 311px;" /&gt;&lt;/P&gt;&lt;P&gt;The following example shows you how to run a batch file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Shell script 2.png" class="jive-image" src="/legacyfs/online/45878_Shell script 2.png" style="width: 620px; height: 335px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 08:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529221#M197834</guid>
      <dc:creator>Andrea_Ghirardello</dc:creator>
      <dc:date>2013-08-26T08:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529222#M197835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;The script which you sent works well. But now how will i send the parameters to TriggerMacro.bat file ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 08:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529222#M197835</guid>
      <dc:creator />
      <dc:date>2013-08-26T08:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529223#M197836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can pass parameters to macros&amp;nbsp; Following command TriggerMacro is parameter passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\QlikView\QV.exe" /Vv TriggerMacro=0&amp;nbsp; "C:\Export-Email-Automation\Dashboard.qvw" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 08:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529223#M197836</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-08-26T08:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529224#M197837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Sorry for the trouble , but can you give me the example using below script&lt;/P&gt;&lt;P&gt;EXECUTE cmd.exe /C C:\Export-Email-Automation\TriggerMacro.bat;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXIT SCRIPT;&lt;/P&gt;&lt;P&gt;I tried 1)EXECUTE cmd.exe /C "C:\Export-Email-Automation\TriggerMacro.bat" Parameter1 Parameter2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2)EXECUTE cmd.exe /C "C:\Export-Email-Automation\TriggerMacro.bat; Parameter1 Parameter2";&lt;/P&gt;&lt;P&gt;Both the&amp;nbsp; above scripts didnt work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont understand&lt;/P&gt;&lt;P&gt;"C:\Program Files\QlikView\QV.exe" /Vv TriggerMacro=0&amp;nbsp; "C:\Export-Email-Automation\Dashboard.qvw"&lt;/P&gt;&lt;P&gt;Can u explain it a bit .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 09:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529224#M197837</guid>
      <dc:creator />
      <dc:date>2013-08-26T09:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529225#M197838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use WScript.Arguments...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim obj&lt;/P&gt;&lt;P&gt;Set obj = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;Set oArgs = wscript.Arguments&lt;/P&gt;&lt;P&gt;obj.Run "c:\test.bat " &amp;amp; oArgs(0), , TRUE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 09:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529225#M197838</guid>
      <dc:creator>Andrea_Ghirardello</dc:creator>
      <dc:date>2013-08-26T09:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529226#M197839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrea its not working ,,,&lt;/P&gt;&lt;P&gt;i tried &lt;/P&gt;&lt;P&gt;copied the below script in VBS file &lt;/P&gt;&lt;P&gt;Dim obj&lt;/P&gt;&lt;P&gt;Set obj = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;Set oArgs = WScript.Arguments&lt;/P&gt;&lt;P&gt;obj.Run "E:\Qvd to be pushed to Mysql\Textfile.bat " &amp;amp; oArgs(0) &amp;amp; oArgs(1)&amp;amp; oArgs(2), , TRUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and called the vbs file through button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But sadly not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 09:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529226#M197839</guid>
      <dc:creator />
      <dc:date>2013-08-26T09:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529227#M197840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your qv macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set obj = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;Arg0 = "first_parameter"&lt;/P&gt;&lt;P&gt;Arg1 = "second_parameter"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;obj.Run "C:\test\Test.bat" &amp;amp; Arg0 &amp;amp; " " &amp;amp; Arg1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In your batch use %1 for Arg0 and %2 for Arg2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 10:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529227#M197840</guid>
      <dc:creator>Andrea_Ghirardello</dc:creator>
      <dc:date>2013-08-26T10:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529228#M197841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you tries these indirectly - you could stored the parameter in a text-file and the batch-file read this file before it executed the main-tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 11:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529228#M197841</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-08-26T11:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529229#M197842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Andrea for help and patience .&lt;/P&gt;&lt;P&gt;After inumerable trial and errors below script worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub TestingV&lt;/P&gt;&lt;P&gt;Dim obj&lt;/P&gt;&lt;P&gt;Set obj = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;obj.Run "E:\Qlikview\Test\textfile.bat "&amp;amp;"locationmaster" &amp;amp;" CramerB" &amp;amp;" 3326", , TRUE&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 12:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529229#M197842</guid>
      <dc:creator />
      <dc:date>2013-08-26T12:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a batch file with parameters from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529230#M197843</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 am also stuck in similar requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have chart with link , when users click link , batch file needs to be triggered &amp;amp; pass values from Qlikview. This batch file is basically gonna open another app with the parameters passed from QV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Format is&lt;/P&gt;&lt;P&gt;'\\server\xyz.bat' -ab &amp;lt;Values from QV&amp;gt;&amp;nbsp; -cd &amp;lt;Values from QV&amp;gt; -de&amp;lt;values from QV&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;** -ab , -cd , -de are the parameters name for bat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently i am trying to use link repsenation of chart &amp;amp; using &amp;lt;url&amp;gt; '\\server\xyz.bat'&amp;nbsp; It works fine without parameter. But as soon as i add parameter , it doesnt execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with macro coding. So if you can send me step by step instructions or way to do without macro it will really help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your response !!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 21:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-call-a-batch-file-with-parameters-from-qlikview/m-p/529230#M197843</guid>
      <dc:creator />
      <dc:date>2013-08-28T21:08:09Z</dc:date>
    </item>
  </channel>
</rss>

