<?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 Execute Command in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/40353#M2730</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;We are trying to create and execute a bat file from the script.&lt;/P&gt;&lt;P&gt;I already disabled the standard mode and added these two lines in the settings.ini:&lt;/P&gt;&lt;P&gt;OverrideScriptSecurity=1&lt;/P&gt;&lt;P&gt;AllowExecuteCommand=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My qlik service user has rights to go to the location and to do things there.&lt;/P&gt;&lt;P&gt;In Qlik Sense the message is that de execute command is being executed, but it doesn't do anything.&lt;/P&gt;&lt;P&gt;The commands i'm using are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFile = peek('File',$(j),'FilesToLoad');&lt;/P&gt;&lt;P&gt;LET vImportPath = '\\Server\map\IN\';&lt;/P&gt;&lt;P&gt;LET vExportPath = '\\Server\map\Archief\';&lt;/P&gt;&lt;P&gt;LET vMoveFile = 'move ' &amp;amp; chr(34)&amp;amp; vImportPath &amp;amp; vFile &amp;amp; chr(34) &amp;amp; ' ' &amp;amp; chr(34) &amp;amp;&amp;nbsp; vExportPath &amp;amp; vFile&amp;amp; chr(34);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;execute cmd.exe /c echo $(vMoveFile) &amp;gt; "E:\1. Qlik PROD\0. Data\4. Support files\2. Batch bestanden\Batchbestanden\sales.bat";&lt;/P&gt;&lt;P&gt;EXECUTE&amp;nbsp;&amp;nbsp;&amp;nbsp; cmd.exe /C "E:\1. Qlik PROD\0. Data\4. Support files\2. Batch bestanden\Batchbestanden\sales.bat";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone any idea what is going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Isabelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Feb 2018 15:09:05 GMT</pubDate>
    <dc:creator>ift_isabelle</dc:creator>
    <dc:date>2018-02-16T15:09:05Z</dc:date>
    <item>
      <title>Execute Command</title>
      <link>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/40353#M2730</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;We are trying to create and execute a bat file from the script.&lt;/P&gt;&lt;P&gt;I already disabled the standard mode and added these two lines in the settings.ini:&lt;/P&gt;&lt;P&gt;OverrideScriptSecurity=1&lt;/P&gt;&lt;P&gt;AllowExecuteCommand=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My qlik service user has rights to go to the location and to do things there.&lt;/P&gt;&lt;P&gt;In Qlik Sense the message is that de execute command is being executed, but it doesn't do anything.&lt;/P&gt;&lt;P&gt;The commands i'm using are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFile = peek('File',$(j),'FilesToLoad');&lt;/P&gt;&lt;P&gt;LET vImportPath = '\\Server\map\IN\';&lt;/P&gt;&lt;P&gt;LET vExportPath = '\\Server\map\Archief\';&lt;/P&gt;&lt;P&gt;LET vMoveFile = 'move ' &amp;amp; chr(34)&amp;amp; vImportPath &amp;amp; vFile &amp;amp; chr(34) &amp;amp; ' ' &amp;amp; chr(34) &amp;amp;&amp;nbsp; vExportPath &amp;amp; vFile&amp;amp; chr(34);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;execute cmd.exe /c echo $(vMoveFile) &amp;gt; "E:\1. Qlik PROD\0. Data\4. Support files\2. Batch bestanden\Batchbestanden\sales.bat";&lt;/P&gt;&lt;P&gt;EXECUTE&amp;nbsp;&amp;nbsp;&amp;nbsp; cmd.exe /C "E:\1. Qlik PROD\0. Data\4. Support files\2. Batch bestanden\Batchbestanden\sales.bat";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone any idea what is going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Isabelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 15:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/40353#M2730</guid>
      <dc:creator>ift_isabelle</dc:creator>
      <dc:date>2018-02-16T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Command</title>
      <link>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/40354#M2731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked whether the sales.bat file gets created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it does - have you checked the content of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the content looks OK have you tried to run it manually?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2018 01:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/40354#M2731</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-02-17T01:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Command</title>
      <link>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/40355#M2732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The script doesn’t create the bat file.&lt;/SPAN&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But, annoying part, in Qlik view the script and bat-files work perfectly. So i guess i’m missing a setting or something in Sense.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2018 11:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/40355#M2732</guid>
      <dc:creator>ift_isabelle</dc:creator>
      <dc:date>2018-02-17T11:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Command</title>
      <link>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/40356#M2733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And I guess the E-drive is a local drive for the server not a mapped network drive - right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2018 11:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/40356#M2733</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-02-17T11:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Command</title>
      <link>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/40357#M2734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Yes it is a local drive and i have full admin right on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2018 17:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/40357#M2734</guid>
      <dc:creator>ift_isabelle</dc:creator>
      <dc:date>2018-02-17T17:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Command</title>
      <link>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/1753684#M58095</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´ve the same problem like isabelle. Is there any sollution founded?&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41481"&gt;@petter&lt;/a&gt;&amp;nbsp;I have selected the C-Drive from my server and created a connector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="pl1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42575i5A9BFE7E2A786148/image-size/large?v=v2&amp;amp;px=999" role="button" title="pl1.PNG" alt="pl1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="pl2.PNG" style="width: 689px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42573i4FBB1E29ED1853CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pl2.PNG" alt="pl2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="pl3.PNG" style="width: 703px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42574iDEF1EC1BD37ACBB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pl3.PNG" alt="pl3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 10:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Execute-Command/m-p/1753684#M58095</guid>
      <dc:creator>SimonAichmayr</dc:creator>
      <dc:date>2020-10-19T10:53:42Z</dc:date>
    </item>
  </channel>
</rss>

