<?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: Create a Macro to run a Batch File in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022382#M642200</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;Go to Tools -&amp;gt; Edit Module and then plug the below vbscript/macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 12pt;"&gt;Sub Run_BAT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Set obj = createobject("Wscript.Shell")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;obj.Run chr(34) &amp;amp; "Full_Path_To_Your_bat_File" &amp;amp; chr(34), 0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Set obj = Nothing&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 12pt;"&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then assign this to button or any other object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2016 21:12:49 GMT</pubDate>
    <dc:creator>sinanozdemir</dc:creator>
    <dc:date>2016-01-04T21:12:49Z</dc:date>
    <item>
      <title>Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022381#M642199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How Can I execute a batch file inside a macro? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating a Run Method (Windows Script Host) to execute the batch file but it doesn't run...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have anyone already create a macro to run a batch file successfully? Or have a better ideia to run the script of a batch file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 19:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022381#M642199</guid>
      <dc:creator />
      <dc:date>2016-01-04T19:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022382#M642200</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;Go to Tools -&amp;gt; Edit Module and then plug the below vbscript/macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 12pt;"&gt;Sub Run_BAT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Set obj = createobject("Wscript.Shell")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;obj.Run chr(34) &amp;amp; "Full_Path_To_Your_bat_File" &amp;amp; chr(34), 0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Set obj = Nothing&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 12pt;"&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then assign this to button or any other object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 21:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022382#M642200</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-01-04T21:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022383#M642201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sinan Ozdemir! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to have that code when opening the application (Reload), is that possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 22:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022383#M642201</guid>
      <dc:creator />
      <dc:date>2016-01-04T22:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022384#M642202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Opening or Reload? Anyway, Go to Settings -&amp;gt; Document Properties -&amp;gt; Triggers:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;You can just when you want to run the macro from &lt;STRONG&gt;&lt;EM&gt;Document Event Triggers&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110550_Capture.PNG" style="height: 533px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;And then click on Add Action(s) -&amp;gt; Add -&amp;gt; External -&amp;gt; Run Macro:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/110551_Capture.PNG" style="height: 478px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Just type the macro name into Macro Name text box:'&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/110558_Capture.PNG" style="height: 358px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;This should do it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 22:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022384#M642202</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-01-04T22:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022385#M642203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect Sinan &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 22:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022385#M642203</guid>
      <dc:creator />
      <dc:date>2016-01-04T22:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022386#M642204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for one more question... &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code is possible to hide the execution window?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 22:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022386#M642204</guid>
      <dc:creator />
      <dc:date>2016-01-04T22:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022387#M642205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean the cmd window?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 23:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022387#M642205</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-01-04T23:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022388#M642206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem. You are welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 23:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022388#M642206</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-01-04T23:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022389#M642207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No,&lt;/P&gt;&lt;P&gt;This window:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image" src="https://community.qlik.com/legacyfs/online/110547_pastedImage_0.png" /&gt;&lt;/P&gt;&lt;P&gt;Thank you very much! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 23:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022389#M642207</guid>
      <dc:creator />
      <dc:date>2016-01-04T23:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022390#M642208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your macro, add the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ReloadEx 0,1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 is for Error Mode and 1 is for Progress Mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 00:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022390#M642208</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-01-05T00:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022391#M642209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I don't understand very well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB Run&lt;/P&gt;&lt;P&gt;ActiveDocument.ReloadEx 0,1&lt;/P&gt;&lt;P&gt;Set obj = createobject("Wscript.Shell")&lt;/P&gt;&lt;P&gt;obj.Run chr(34) &amp;amp; "PATH\teste.bat" &amp;amp; chr(34), 0, true&lt;/P&gt;&lt;P&gt;Set obj = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The window it still appear &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 00:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022391#M642209</guid>
      <dc:creator />
      <dc:date>2016-01-05T00:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022392#M642210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the trigger that you are choosing to run the macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried it on "OnOpen" and the window didn't appear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 01:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022392#M642210</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-01-05T01:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022393#M642211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's strange because when I save the application &lt;SPAN lang="en"&gt;and I reset the application to aperece window with the execution of the script . If you close the application without saving , and re-do reset , the window no longer appears ... Very strange&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 09:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022393#M642211</guid>
      <dc:creator />
      <dc:date>2016-01-05T09:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022394#M642212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the module and local security setting in the Edit Module screen?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110619_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 13:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022394#M642212</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-01-05T13:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Macro to run a Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022395#M642213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same but sometimes it change to default current local security value (Security Mode)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 14:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Macro-to-run-a-Batch-File/m-p/1022395#M642213</guid>
      <dc:creator />
      <dc:date>2016-01-05T14:10:40Z</dc:date>
    </item>
  </channel>
</rss>

