<?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: bat file execution in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/bat-file-execution/m-p/759007#M1033392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the bat file has not been created ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2015 17:13:08 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2015-01-23T17:13:08Z</dc:date>
    <item>
      <title>bat file execution</title>
      <link>https://community.qlik.com/t5/QlikView/bat-file-execution/m-p/759005#M1033390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all,&lt;/P&gt;&lt;P&gt;I'm trying to execute without success, the script below. The gol is to remove all the files older than a certain number of days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BatFile:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 'forfiles /p $(vselectedpath) /s /m *.$(vselectedtype) /d -$(vdaynumber) /c ' &amp;amp; ' "cmd /c del /q @path" ' As [@echo off]&lt;/P&gt;&lt;P&gt; AutoGenerate(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store BatFile into c:\mydir\RmvOldFile.bat (txt);&lt;/P&gt;&lt;P&gt;Drop Table BatFile;&lt;/P&gt;&lt;P&gt;EXECUTE c:\mydir\RmvOldFiles.bat;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always receive the message below. Help please&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76118_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 16:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/bat-file-execution/m-p/759005#M1033390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-23T16:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: bat file execution</title>
      <link>https://community.qlik.com/t5/QlikView/bat-file-execution/m-p/759006#M1033391</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 this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXECUTE &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;cmd&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;/c&lt;/STRONG&gt;&lt;/SPAN&gt; c:\mydir\RmvOldFiles.bat;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 16:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/bat-file-execution/m-p/759006#M1033391</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2015-01-23T16:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: bat file execution</title>
      <link>https://community.qlik.com/t5/QlikView/bat-file-execution/m-p/759007#M1033392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the bat file has not been created ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 17:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/bat-file-execution/m-p/759007#M1033392</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-23T17:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: bat file execution</title>
      <link>https://community.qlik.com/t5/QlikView/bat-file-execution/m-p/759008#M1033393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar, really thanks.&lt;/P&gt;&lt;P&gt;But I need a little more help. Now the problem seems to be how the command is written. I store in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; 'forfiles /p $(vpath) /s /m *.$(vtype) /d -$(vdaynum) /c "cmd /c del /q @path" ' As [@echo off]&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But editing by Notepad,&amp;nbsp; the created file is different and it doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"forfiles /p c:\bi_qlik\old_qdoc2 /s /m *.* /d -365 /c ""cmd /c del /q @path"" "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm doing wrong ? I think the problem are the quotation mark, but I'm not able to solve it&lt;/P&gt;&lt;P&gt;Hope you can or somebody else can help me.&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/bat-file-execution/m-p/759008#M1033393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-23T18:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: bat file execution</title>
      <link>https://community.qlik.com/t5/QlikView/bat-file-execution/m-p/759009#M1033394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;the script has created the bat file but it doesn't work (see my previous reply)&lt;/P&gt;&lt;P&gt;I think the problem are the quotation mark, but I'm really confused.&lt;/P&gt;&lt;P&gt;Hope you can help me&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/bat-file-execution/m-p/759009#M1033394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-23T18:25:24Z</dc:date>
    </item>
  </channel>
</rss>

