<?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: WScript.shell execution stops at Run command in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627713#M230610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps one of these parameters aren't valid for your exe - have you tried it without these parameters.&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, 28 May 2014 13:24:13 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2014-05-28T13:24:13Z</dc:date>
    <item>
      <title>WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627706#M230603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to write a macro that executes an external program that creates an excel file which I want to load into my qlikview application.&lt;BR /&gt;I have tried using the WScript.Shell.Execute command to do this and it seems to work, however the external program is prone to some delay which causes the loading to fail sometimes.&lt;BR /&gt;I would like to use the WScript.Shell.Run command instead which has the built in functionality of waiting for a return value, i.e:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;set WsShell = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;WsShell.Run &amp;lt;Path to external exe-file&amp;gt;,1,true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when trying to execute the macro the execution always stops at the WsShell.Run line with no error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution to this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Petter Grundström&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 08:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627706#M230603</guid>
      <dc:creator>petgr138</dc:creator>
      <dc:date>2014-05-26T08:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627707#M230604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most often the path isn't correct especially if there are any whitespace in, here an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set objWscript = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;pdf = """C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"""&lt;/P&gt;&lt;P&gt;objWscript.Run(pdf &amp;amp; """" &amp;amp; path &amp;amp; file &amp;amp; """")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further it could be a lack of access rights within the filesystem for the user-account or the modul-security (left side of editor-window) isn't on external execution or user-settings within tab security isn't set.&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 May 2014 11:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627707#M230604</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-05-26T11:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627708#M230605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, do I need to replace the whitespaces in the command path with "\ "?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command path contains arguments to the exe-file as well i.e:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commandPath = "C:\Users\Petter\externalExe.exe\ argument1\ argument2\ argument3"&lt;/P&gt;&lt;P&gt;set WsShell = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;WsShell.Run commandPath,1,true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Petter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 11:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627708#M230605</guid>
      <dc:creator>petgr138</dc:creator>
      <dc:date>2014-05-26T11:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627709#M230606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No - not replacing the whitespace else wrapped in with double-quotes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;""""Path\File"""" will be interpreted from compiler as "Path/File" (it's just syntax)&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 May 2014 11:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627709#M230606</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-05-26T11:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627710#M230607</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;I don't get it. This is the command I want to send:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Users\Petter\executable.exe argument1 argument2 argument3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I write it for WsShell.Run to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help so far!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Petter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 11:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627710#M230607</guid>
      <dc:creator>petgr138</dc:creator>
      <dc:date>2014-05-28T11:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627711#M230608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that your parameters caused this issue - have a look on this example:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.visualbasicscript.com/running-exe-from-vbscript-and-passing-parameters-m102094.aspx" title="http://www.visualbasicscript.com/running-exe-from-vbscript-and-passing-parameters-m102094.aspx"&gt;running exe from vbscript and passing parameters&lt;/A&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, 28 May 2014 12:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627711#M230608</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-05-28T12:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627712#M230609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well all that thread says is that I should write:&lt;BR /&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;Set&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; sh &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;CreateObject&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #008800;"&gt;"WScript.Shell"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&lt;BR /&gt;sh&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;Run&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #008800;"&gt;"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;C:\Users\Petter\executable.exe argument1 argument2 argument3&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #006666;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Which is exactly what I tried in the first place but the execution always stops at that line&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Did you get this to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Petter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627712#M230609</guid>
      <dc:creator>petgr138</dc:creator>
      <dc:date>2014-05-28T13:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627713#M230610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps one of these parameters aren't valid for your exe - have you tried it without these parameters.&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, 28 May 2014 13:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627713#M230610</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-05-28T13:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627714#M230611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are valid. I have written the exe myself and it works fine if i run it from command line with the exact same input, it also works if I run:&lt;BR /&gt;CreateObject("WScript.Shell").Exec(&lt;SPAN class="pln" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #008800; background-color: #f6f6f6;"&gt;"&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #3d3d3d;"&gt;C:\Users\Petter\executable.exe argument1 argument2 argument3&lt;/SPAN&gt;"&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since Exec() doesn't have any functionality for waiting for a reply from the execution it doesn't fulfill my needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a working example of VBS code where you use WsShell.Run with parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Petter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627714#M230611</guid>
      <dc:creator>petgr138</dc:creator>
      <dc:date>2014-05-28T13:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627715#M230612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This runs and set a new variable-value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set objWscript = CreateObject("WScript.Shell") &lt;/P&gt;&lt;P&gt;objWscript.run "D:\QlikView_Client\qv.exe /vupdate=1 D:\MyApp.qvw"&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, 28 May 2014 13:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627715#M230612</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-05-28T13:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627716#M230613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I also got it working. It was the spaces in the path to my exe-file that was the problem. By moving the exe it was possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how do I get around it because I don't want to move the file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the path is: C:\Users\Petter\Desktop\Sub Folder\executable.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I write to get the script engine to interpret the file path correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Petter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627716#M230613</guid>
      <dc:creator>petgr138</dc:creator>
      <dc:date>2014-05-28T14:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627717#M230614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The path respectively the complete statement must be in double-quotes wrapped. The correct syntax is really difficult and I couldn't never memorize it ... so I use most often trial and error ... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&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, 28 May 2014 14:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627717#M230614</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-05-28T14:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: WScript.shell execution stops at Run command</title>
      <link>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627718#M230615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your help! I finally got it working using trial and error with triple quotes on virtually everyhting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Petter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WScript-shell-execution-stops-at-Run-command/m-p/627718#M230615</guid>
      <dc:creator>petgr138</dc:creator>
      <dc:date>2014-05-28T14:48:16Z</dc:date>
    </item>
  </channel>
</rss>

