<?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 Loading Filetime from all Subfolders of a root folder in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-Filetime-from-all-Subfolders-of-a-root-folder/m-p/1231559#M392364</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;I want to load the filetimes of files present in all the subfolders of that particular root folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script is as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vPath = 'J:\IT\Time';&lt;/P&gt;&lt;P&gt;LET vType = '*';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Each Filename in FileList('$(vPath)\*.$(vType)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileTime() as [File -Time],&lt;/P&gt;&lt;P&gt;From [$(Filename)];&lt;/P&gt;&lt;P&gt;NEXT Filename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script extracts filetime of only those files present in the path defined and not from its subfolders. I want the data from all its subfolders as well, how is this achievable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Umar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2017 11:05:20 GMT</pubDate>
    <dc:creator>umartareen</dc:creator>
    <dc:date>2017-01-25T11:05:20Z</dc:date>
    <item>
      <title>Loading Filetime from all Subfolders of a root folder</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Filetime-from-all-Subfolders-of-a-root-folder/m-p/1231559#M392364</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;I want to load the filetimes of files present in all the subfolders of that particular root folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script is as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vPath = 'J:\IT\Time';&lt;/P&gt;&lt;P&gt;LET vType = '*';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Each Filename in FileList('$(vPath)\*.$(vType)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileTime() as [File -Time],&lt;/P&gt;&lt;P&gt;From [$(Filename)];&lt;/P&gt;&lt;P&gt;NEXT Filename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script extracts filetime of only those files present in the path defined and not from its subfolders. I want the data from all its subfolders as well, how is this achievable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Umar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 11:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Filetime-from-all-Subfolders-of-a-root-folder/m-p/1231559#M392364</guid>
      <dc:creator>umartareen</dc:creator>
      <dc:date>2017-01-25T11:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Filetime from all Subfolders of a root folder</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Filetime-from-all-Subfolders-of-a-root-folder/m-p/1231560#M392365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This is from QV Help:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Root = 'Your folder path';&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;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;FOR Each&lt;/SPAN&gt; Ext in 'qvw', 'qva', 'qvo', 'qvs'&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;FOR Each&lt;/SPAN&gt; 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;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;FOR Each&lt;/SPAN&gt; 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 13:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Filetime-from-all-Subfolders-of-a-root-folder/m-p/1231560#M392365</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-01-25T13:07:00Z</dc:date>
    </item>
  </channel>
</rss>

