<?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 Downloading multiple .xml.gz file from FTP in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Downloading-multiple-xml-gz-file-from-FTP/m-p/1124558#M631163</link>
    <description>&lt;P&gt;Hi I am trying to get bunch of .xml.gz file from ftp and copying them to my local folder with the below script in qlikview. But its not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i want to copy files from one local folder to another local folder it works. But for ftp it doesnt work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BatFile:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;'This is a batch file test' As [@echo off]&lt;/P&gt;&lt;P&gt;AutoGenerate(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let vDate = Date(Today(),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;Let vExt = '*.xml.gz';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For Each vFile in FileList('&lt;/SPAN&gt;&lt;A href="ftp://Username:Password.982@ServerName:21/folder/*.xml.gz" target="_blank" rel="nofollow noopener"&gt;ftp://Username:Password.982@ServerName:21/folder/*.xml.gz&lt;/A&gt;&lt;SPAN&gt;')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BatFile:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FIRST 1 Load&lt;/P&gt;&lt;P&gt;'COPY $(vFile) C:\Users\Documents\TestFolder1\$(vDate)'&amp;amp;'_' &amp;amp; SubField('$(vFile)', '\', -1) As [@echo off]&lt;/P&gt;&lt;P&gt;FROM $(vFile) (txt);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Store BatFile into 'C:\Users\Documents\ABC'.bat (txt);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop Table BatFile;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EXECUTE C:\Users\Documents\ABC.bat;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnaks,&lt;/P&gt;&lt;P&gt;Sk&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2019 09:56:33 GMT</pubDate>
    <dc:creator>BootCam</dc:creator>
    <dc:date>2019-09-20T09:56:33Z</dc:date>
    <item>
      <title>Downloading multiple .xml.gz file from FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Downloading-multiple-xml-gz-file-from-FTP/m-p/1124558#M631163</link>
      <description>&lt;P&gt;Hi I am trying to get bunch of .xml.gz file from ftp and copying them to my local folder with the below script in qlikview. But its not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i want to copy files from one local folder to another local folder it works. But for ftp it doesnt work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BatFile:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;'This is a batch file test' As [@echo off]&lt;/P&gt;&lt;P&gt;AutoGenerate(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let vDate = Date(Today(),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;Let vExt = '*.xml.gz';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For Each vFile in FileList('&lt;/SPAN&gt;&lt;A href="ftp://Username:Password.982@ServerName:21/folder/*.xml.gz" target="_blank" rel="nofollow noopener"&gt;ftp://Username:Password.982@ServerName:21/folder/*.xml.gz&lt;/A&gt;&lt;SPAN&gt;')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BatFile:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FIRST 1 Load&lt;/P&gt;&lt;P&gt;'COPY $(vFile) C:\Users\Documents\TestFolder1\$(vDate)'&amp;amp;'_' &amp;amp; SubField('$(vFile)', '\', -1) As [@echo off]&lt;/P&gt;&lt;P&gt;FROM $(vFile) (txt);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Store BatFile into 'C:\Users\Documents\ABC'.bat (txt);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop Table BatFile;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EXECUTE C:\Users\Documents\ABC.bat;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnaks,&lt;/P&gt;&lt;P&gt;Sk&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 09:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Downloading-multiple-xml-gz-file-from-FTP/m-p/1124558#M631163</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2019-09-20T09:56:33Z</dc:date>
    </item>
  </channel>
</rss>

