<?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: list of filename - no subfolders, current folder only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/list-of-filename-no-subfolders-current-folder-only/m-p/1145313#M634420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the wildcard in the filename really leads to QlikView scanning all subfolders?&lt;/P&gt;&lt;P&gt;Not sure about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But using a FOR EACH vFile IN FILELIST(*.htm) ...NEXT&lt;/P&gt;&lt;P&gt;should only scan the working directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptControlStatements/For%20Each.htm?q=next" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptControlStatements/For%20Each.htm?q=next"&gt;For each..next ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2016 21:06:48 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-06-17T21:06:48Z</dc:date>
    <item>
      <title>list of filename - no subfolders, current folder only</title>
      <link>https://community.qlik.com/t5/QlikView/list-of-filename-no-subfolders-current-folder-only/m-p/1145312#M634419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many posts exist on how to find all files like *.htm in a given directory.&amp;nbsp; For example: &lt;A href="https://community.qlik.com/thread/32598"&gt;Load list of files in a Folder&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a directory that has (say) a thousand saved web pages.&amp;nbsp; I need the list of *.htm in the high-level directory only, not all the subdirectories.&amp;nbsp; I could pull back everything and throw out the information from the subdirectories, but the time waste in scanning 1,000 subdirectories unnecessarily is extraordinary!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I pull back all/desired files from the top-level directory only?!&amp;nbsp; (In Windows 7 you can use a '-folder' option to prevent subdirectory search but can't seem to find something similar here.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 20:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-of-filename-no-subfolders-current-folder-only/m-p/1145312#M634419</guid>
      <dc:creator />
      <dc:date>2016-06-17T20:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: list of filename - no subfolders, current folder only</title>
      <link>https://community.qlik.com/t5/QlikView/list-of-filename-no-subfolders-current-folder-only/m-p/1145313#M634420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the wildcard in the filename really leads to QlikView scanning all subfolders?&lt;/P&gt;&lt;P&gt;Not sure about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But using a FOR EACH vFile IN FILELIST(*.htm) ...NEXT&lt;/P&gt;&lt;P&gt;should only scan the working directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptControlStatements/For%20Each.htm?q=next" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptControlStatements/For%20Each.htm?q=next"&gt;For each..next ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 21:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-of-filename-no-subfolders-current-folder-only/m-p/1145313#M634420</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-17T21:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: list of filename - no subfolders, current folder only</title>
      <link>https://community.qlik.com/t5/QlikView/list-of-filename-no-subfolders-current-folder-only/m-p/1145314#M634421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looked again at FOR EACH... NEXT approaches I looked at before posting originally.&amp;nbsp; My issue was not commenting out the 'for each Dir...' which not surprisingly recursively looped through all subdirectories.&amp;nbsp; &amp;lt;sigh!&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks swuehl for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub DoDir (Root)&lt;/P&gt;&lt;P&gt; for each Ext in 'htm'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; for each File in filelist (Root&amp;amp;'\*.' &amp;amp;Ext)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(File)' as Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField ('$(File)', chr(92), -1) as NameNoPath,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileSize( '$(File)' ) as Size,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileTime( '$(File)' ) as FileTime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autogenerate 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; next File&lt;/P&gt;&lt;P&gt; next Ext&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; /* for each Dir in dirlist (Root&amp;amp;'\*' )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; call DoDir (Dir)&lt;/P&gt;&lt;P&gt; next Dir */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call DoDir ('C:\Dir1\Dir2')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 23:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/list-of-filename-no-subfolders-current-folder-only/m-p/1145314#M634421</guid>
      <dc:creator />
      <dc:date>2016-06-17T23:16:47Z</dc:date>
    </item>
  </channel>
</rss>

