<?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: Calling Command Prompt through VB script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calling-Command-Prompt-through-VB-script/m-p/1191372#M384983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a run-statement like the following could be helpful: &lt;A href="http://qlikviewmaven.blogspot.de/2008/08/qlikview-command-line-and-automation.html" title="http://qlikviewmaven.blogspot.de/2008/08/qlikview-command-line-and-automation.html"&gt;QlikView Maven: QlikView Command Line and Automation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new; font-size: 85%;"&gt;Set objShell = CreateObject("WScript.Shell")&lt;BR /&gt;objShell.Run """c:\Program Files\QlikView\QV.exe"" /r /vbatch_flag=1 c:\reports\Inventory.qvw"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 11:02:45 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-10-12T11:02:45Z</dc:date>
    <item>
      <title>Calling Command Prompt through VB script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Command-Prompt-through-VB-script/m-p/1191369#M384980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I am trying to call the command prompt, to execute a particular line of code, through the VB Editor in QlikView. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;If I was to execute this statement in the LOAD script, the code would be as follows: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;EXECUTE&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; "C:\Program Files\R\R-3.2.4\bin\Rscript" "C:\QlikView TEST\1 - R programming\QlikViewTEST3.R" CMD; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Here the code essentially: &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;1: calls R through the command prompt&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;2: loads the R file called ‘&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;QlikViewTEST3.R’ &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;3: executes the scripts contained in ‘&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;QlikViewTEST3.R’ &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;4: closes R&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;EM&gt;My question is:&lt;/EM&gt; how could I implement the same statement through the VB Editor, instead of through the LOAD statement. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Unfortunately my VB is not great, so I would appreciate any help. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; Sincerely,&lt;BR /&gt; Michael &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 19:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Command-Prompt-through-VB-script/m-p/1191369#M384980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-11T19:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Command Prompt through VB script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Command-Prompt-through-VB-script/m-p/1191370#M384981</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;maybe helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="/t5/forums/searchpage/tab/message?q=R integration"&gt;https://community.qlik.com/search.jspa?q=R+integration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 22:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Command-Prompt-through-VB-script/m-p/1191370#M384981</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-11T22:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Command Prompt through VB script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Command-Prompt-through-VB-script/m-p/1191371#M384982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco, I appreciate your help. Unfortunately, while I already have R integrated with QlikView through an API, this is not a robust solution. As such, I am looking to load a batch file into R and execute the scripts through the command prompt instead, and then reload the QlikView app. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 22:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Command-Prompt-through-VB-script/m-p/1191371#M384982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-11T22:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Command Prompt through VB script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Command-Prompt-through-VB-script/m-p/1191372#M384983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a run-statement like the following could be helpful: &lt;A href="http://qlikviewmaven.blogspot.de/2008/08/qlikview-command-line-and-automation.html" title="http://qlikviewmaven.blogspot.de/2008/08/qlikview-command-line-and-automation.html"&gt;QlikView Maven: QlikView Command Line and Automation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new; font-size: 85%;"&gt;Set objShell = CreateObject("WScript.Shell")&lt;BR /&gt;objShell.Run """c:\Program Files\QlikView\QV.exe"" /r /vbatch_flag=1 c:\reports\Inventory.qvw"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 11:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Command-Prompt-through-VB-script/m-p/1191372#M384983</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-12T11:02:45Z</dc:date>
    </item>
  </channel>
</rss>

