<?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 Selecting all files in a folder in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-all-files-in-a-folder/m-p/934251#M651500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope everyone is doing good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a requirement where i have multiple folders, Say&lt;/P&gt;&lt;P&gt;C:\QVDATA\Folder1; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;C:\QVDATA\Folder2&lt;/SPAN&gt;,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;C:\QVDATA\Folder3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I wanna navigate to every folder and select all the files with ".XLS" extension.&lt;/P&gt;&lt;P&gt;I tried using For loop but not getting executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone throw some limelight ..&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Aug 2015 22:01:23 GMT</pubDate>
    <dc:creator>markgraham123</dc:creator>
    <dc:date>2015-08-30T22:01:23Z</dc:date>
    <item>
      <title>Selecting all files in a folder</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-all-files-in-a-folder/m-p/934251#M651500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope everyone is doing good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a requirement where i have multiple folders, Say&lt;/P&gt;&lt;P&gt;C:\QVDATA\Folder1; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;C:\QVDATA\Folder2&lt;/SPAN&gt;,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;C:\QVDATA\Folder3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I wanna navigate to every folder and select all the files with ".XLS" extension.&lt;/P&gt;&lt;P&gt;I tried using For loop but not getting executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone throw some limelight ..&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2015 22:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-all-files-in-a-folder/m-p/934251#M651500</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2015-08-30T22:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all files in a folder</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-all-files-in-a-folder/m-p/934252#M651501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a For Each file In FileList() loop for that, there is even an example in the HELP that does pretty much what you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;// list all QV related files on disk&lt;/P&gt;&lt;P class="Code"&gt;SUB DoDir (Root)&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;FOR Each Ext in 'qvw', 'qva', 'qvo', 'qvs'&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;FOR Each File in filelist (Root&amp;amp;' \*.' &amp;amp;Ext)&lt;/P&gt;&lt;P class="Code"&gt;LOAD &lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;'$(File)' as Name, &lt;/P&gt;&lt;P class="Code"&gt;FileSize( '$(File)' ) as Size, &lt;/P&gt;&lt;P class="Code"&gt;FileTime( '$(File)' ) as FileTime&lt;/P&gt;&lt;P class="Code"&gt;autogenerate 1;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code"&gt;NEXT File&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code"&gt;NEXT Ext&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;FOR Each Dir in dirlist (Root&amp;amp;' \*' )&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;call DoDir (Dir)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;NEXT Dir&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code"&gt;ENDSUB&lt;/P&gt;&lt;P class="Code"&gt;CALL DoDir ('C:')&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;If you want to read xls files, use the appropriate extensions in the filelist (...in 'xls', 'xlsx') and create an appropriate LOAD statement in the loop body.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2015 22:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-all-files-in-a-folder/m-p/934252#M651501</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-30T22:15:44Z</dc:date>
    </item>
  </channel>
</rss>

