<?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: Load specific files from a directory using FileTime in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-specific-files-from-a-directory-using-FileTime/m-p/1725896#M452016</link>
    <description>&lt;P&gt;Code like this should work (I've tested on my own items):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FOR EACH vFile in FileList('\\NP\DemogData\')
	IF FileTime('$(vFile)') &amp;gt;= DAYSTART(NOW()) THEN
    	TRACE Load $(vFile);
    ENDIF
NEXT&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might need to update the FileList statement to use the connection where your files are (in case I don't have it fully correct).&amp;nbsp; You would then add your load statement inside of the IF/ENDIF where the TRACE is.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 22:03:31 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2020-07-07T22:03:31Z</dc:date>
    <item>
      <title>Load specific files from a directory using FileTime</title>
      <link>https://community.qlik.com/t5/QlikView/Load-specific-files-from-a-directory-using-FileTime/m-p/1725862#M452011</link>
      <description>&lt;P&gt;In my QlikView script, I want to load all pdf files with a Date Created date of today, and although is seems simple to do, I cannot seem to get anything working.&amp;nbsp; Using these examples, can someone help with the code?&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;My directory:&amp;nbsp; \\NP\DemogData\&lt;/P&gt;&lt;P&gt;My Files all have different names...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Today's files:&amp;nbsp; file01.pdf, file02.pdf, file03.pdf (the sript should load these)&lt;/LI&gt;&lt;LI&gt;Older files in the directory:&amp;nbsp; file22.pdf, file36.pdf, file 45.pdf (the script would ignore these)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-specific-files-from-a-directory-using-FileTime/m-p/1725862#M452011</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2024-11-16T18:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Load specific files from a directory using FileTime</title>
      <link>https://community.qlik.com/t5/QlikView/Load-specific-files-from-a-directory-using-FileTime/m-p/1725896#M452016</link>
      <description>&lt;P&gt;Code like this should work (I've tested on my own items):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FOR EACH vFile in FileList('\\NP\DemogData\')
	IF FileTime('$(vFile)') &amp;gt;= DAYSTART(NOW()) THEN
    	TRACE Load $(vFile);
    ENDIF
NEXT&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might need to update the FileList statement to use the connection where your files are (in case I don't have it fully correct).&amp;nbsp; You would then add your load statement inside of the IF/ENDIF where the TRACE is.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 22:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-specific-files-from-a-directory-using-FileTime/m-p/1725896#M452016</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2020-07-07T22:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load specific files from a directory using FileTime</title>
      <link>https://community.qlik.com/t5/QlikView/Load-specific-files-from-a-directory-using-FileTime/m-p/1726278#M452042</link>
      <description>&lt;P&gt;Thanks a bunch!&amp;nbsp; I was over complicating it... I was trying to write code that would only look at date for the loading and probably didn't have my loop logic correct either.&amp;nbsp; Your code is simple and gets the job done, works great.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 20:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-specific-files-from-a-directory-using-FileTime/m-p/1726278#M452042</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2020-07-08T20:47:59Z</dc:date>
    </item>
  </channel>
</rss>

