<?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 AW:How to browse a folder and get file info for futher calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-browse-a-folder-and-get-file-info-for-futher-calculation/m-p/170894#M41131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it also might be possible with a QlikView internal macro, but a quick solution is to use excel and the following vb-code to read the file informations of your folder, save the excel-sheet and then load it in QlikView:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sub rad_file_information()&lt;BR /&gt;&lt;BR /&gt; Const PATH = "C:\YOUR_FOLDER\"&lt;BR /&gt;&lt;BR /&gt; With ThisWorkbook.Worksheets("Sheet1")&lt;BR /&gt; .[A1].Select&lt;BR /&gt; .[A3:F65000].ClearContents&lt;BR /&gt; .[A1:B1] = Array("Path:", PATH)&lt;BR /&gt; .[B2:F2] = Array("Name", "Date", "Time", "Size", "Folder")&lt;BR /&gt; .&lt;C&gt;.NumberFormat = "dd.mm.yyyy"&lt;BR /&gt; .&lt;D&gt;.NumberFormat = "hh:mm:ss"&lt;BR /&gt; .&lt;E&gt;.NumberFormat = "#,##0"&lt;BR /&gt;&lt;BR /&gt; Call list_files(.[B3:F3], CreateObject( _&lt;BR /&gt; "Scripting.FileSystemObject").GetFolder(PATH))&lt;BR /&gt;&lt;BR /&gt; .&lt;A&gt;.EntireColumn.AutoFit&lt;BR /&gt; End With&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;Sub list_files(r As Range, folder As Variant)&lt;BR /&gt; Dim file As Variant&lt;BR /&gt; Dim subfolder As Variant&lt;BR /&gt;&lt;BR /&gt; For Each file In folder.Files&lt;BR /&gt; r(1) = file.Name&lt;BR /&gt; r(2) = DateValue(file.DateLastModified)&lt;BR /&gt; r(3) = TimeValue(file.DateLastModified)&lt;BR /&gt; r(4) = file.Size&lt;BR /&gt; r(5) = folder.PATH&lt;BR /&gt; Set r = r.Offset(1)&lt;BR /&gt; Next&lt;BR /&gt;&lt;BR /&gt; For Each subfolder In folder.SubFolders&lt;BR /&gt; If (subfolder.Attributes And 4) = 0 Then&lt;BR /&gt; Call list_files(r, subfolder)&lt;BR /&gt; End If&lt;BR /&gt; Next&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;/A&gt;&lt;/E&gt;&lt;/D&gt;&lt;/C&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2009 21:32:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-01T21:32:53Z</dc:date>
    <item>
      <title>How to browse a folder and get file info for futher calculation</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-browse-a-folder-and-get-file-info-for-futher-calculation/m-p/170893#M41130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anybody help my with this little issue. I need to browse the 'Temporary Internet Files' folder, and get out information about filename and the time file is accessed. This may give me the possibility to make a Qlikview where it is possible to aim the internet-traffic and time consumtion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 20:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-browse-a-folder-and-get-file-info-for-futher-calculation/m-p/170893#M41130</guid>
      <dc:creator />
      <dc:date>2009-12-01T20:25:02Z</dc:date>
    </item>
    <item>
      <title>AW:How to browse a folder and get file info for futher calculation</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-browse-a-folder-and-get-file-info-for-futher-calculation/m-p/170894#M41131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it also might be possible with a QlikView internal macro, but a quick solution is to use excel and the following vb-code to read the file informations of your folder, save the excel-sheet and then load it in QlikView:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sub rad_file_information()&lt;BR /&gt;&lt;BR /&gt; Const PATH = "C:\YOUR_FOLDER\"&lt;BR /&gt;&lt;BR /&gt; With ThisWorkbook.Worksheets("Sheet1")&lt;BR /&gt; .[A1].Select&lt;BR /&gt; .[A3:F65000].ClearContents&lt;BR /&gt; .[A1:B1] = Array("Path:", PATH)&lt;BR /&gt; .[B2:F2] = Array("Name", "Date", "Time", "Size", "Folder")&lt;BR /&gt; .&lt;C&gt;.NumberFormat = "dd.mm.yyyy"&lt;BR /&gt; .&lt;D&gt;.NumberFormat = "hh:mm:ss"&lt;BR /&gt; .&lt;E&gt;.NumberFormat = "#,##0"&lt;BR /&gt;&lt;BR /&gt; Call list_files(.[B3:F3], CreateObject( _&lt;BR /&gt; "Scripting.FileSystemObject").GetFolder(PATH))&lt;BR /&gt;&lt;BR /&gt; .&lt;A&gt;.EntireColumn.AutoFit&lt;BR /&gt; End With&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;Sub list_files(r As Range, folder As Variant)&lt;BR /&gt; Dim file As Variant&lt;BR /&gt; Dim subfolder As Variant&lt;BR /&gt;&lt;BR /&gt; For Each file In folder.Files&lt;BR /&gt; r(1) = file.Name&lt;BR /&gt; r(2) = DateValue(file.DateLastModified)&lt;BR /&gt; r(3) = TimeValue(file.DateLastModified)&lt;BR /&gt; r(4) = file.Size&lt;BR /&gt; r(5) = folder.PATH&lt;BR /&gt; Set r = r.Offset(1)&lt;BR /&gt; Next&lt;BR /&gt;&lt;BR /&gt; For Each subfolder In folder.SubFolders&lt;BR /&gt; If (subfolder.Attributes And 4) = 0 Then&lt;BR /&gt; Call list_files(r, subfolder)&lt;BR /&gt; End If&lt;BR /&gt; Next&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;/A&gt;&lt;/E&gt;&lt;/D&gt;&lt;/C&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 21:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-browse-a-folder-and-get-file-info-for-futher-calculation/m-p/170894#M41131</guid>
      <dc:creator />
      <dc:date>2009-12-01T21:32:53Z</dc:date>
    </item>
    <item>
      <title>AW:How to browse a folder and get file info for futher calculation</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-browse-a-folder-and-get-file-info-for-futher-calculation/m-p/170895#M41132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pascal.&lt;/P&gt;&lt;P&gt;It works fine with all other folders except temporary internet files. It seems to be a special folder, handled speciel from the Internet explorer.&lt;/P&gt;&lt;P&gt;But still, thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 20:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-browse-a-folder-and-get-file-info-for-futher-calculation/m-p/170895#M41132</guid>
      <dc:creator />
      <dc:date>2009-12-02T20:34:46Z</dc:date>
    </item>
  </channel>
</rss>

