<?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 FileName() function syntax....? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FileName-function-syntax/m-p/201489#M59558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think FileName() takes any parameters and it should be used within a Load.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Load *, FileName() As FileName&lt;BR /&gt;FROM C:\Documents\Abc.QVD;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then you could probably:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Peek('FileName', 0, TableName)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You may be able to create a batch file to write out a list of all files in a directory and then read that in. Then loop through each record in the list file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Feb 2011 17:41:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-04T17:41:22Z</dc:date>
    <item>
      <title>FileName() function syntax....?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-function-syntax/m-p/201487#M59556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In short, I'm trying to build a table that will give me the names of all the QVDs and QVWs in our main production folder and their last update time (QvdCreateTime()). I'd like to be able to loop through all the filenames in the folder, but have a ways to go for that. Any suggestions or examples?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I'm trying to use the FileName() function to to capture the file name of a certain path with all the following examples;&lt;/P&gt;&lt;P&gt;LET DataPath = 'C:\Documents'; // Works correctly&lt;/P&gt;&lt;P&gt;LET vPath_File = '$(DataPath)\Abc.QVD'; // Works correctly&lt;/P&gt;&lt;P&gt;LET vTimeStamp = QvdCreateTime('$(vPath_File)'); // Works correctly&lt;/P&gt;&lt;P&gt;LET vFile_Name1 = FileName('$(vPath_File)'); // DOES NOT WORK&lt;/P&gt;&lt;P&gt;LET vFile_Name2 = FileName(["C:\Documents\Abc.QVD"]); // DOES NOT WORK&lt;/P&gt;&lt;P&gt;LET vFile_Name3 = FileName(['C:\Documents\Abc.QVD']); // DOES NOT WORK&lt;/P&gt;&lt;P&gt;LET vFile_Name4 = FileName('C:\Documents\Abc.QVD'); // DOES NOT WORK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone see what I'm missing?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 17:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-function-syntax/m-p/201487#M59556</guid>
      <dc:creator />
      <dc:date>2011-02-04T17:11:56Z</dc:date>
    </item>
    <item>
      <title>AW:FileName() function syntax....?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-function-syntax/m-p/201488#M59557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;do you know DoDir?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 17:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-function-syntax/m-p/201488#M59557</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-02-04T17:37:43Z</dc:date>
    </item>
    <item>
      <title>FileName() function syntax....?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-function-syntax/m-p/201489#M59558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think FileName() takes any parameters and it should be used within a Load.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Load *, FileName() As FileName&lt;BR /&gt;FROM C:\Documents\Abc.QVD;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then you could probably:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Peek('FileName', 0, TableName)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You may be able to create a batch file to write out a list of all files in a directory and then read that in. Then loop through each record in the list file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 17:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-function-syntax/m-p/201489#M59558</guid>
      <dc:creator />
      <dc:date>2011-02-04T17:41:22Z</dc:date>
    </item>
    <item>
      <title>AW:FileName() function syntax....?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-function-syntax/m-p/201490#M59559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone! I think this is what I'm looking for...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 20:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-function-syntax/m-p/201490#M59559</guid>
      <dc:creator />
      <dc:date>2011-02-04T20:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: AW:FileName() function syntax....?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-function-syntax/m-p/201491#M59560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Could youe please explain, why there was n? ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DoDir(root,n)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Satti&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 14:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-function-syntax/m-p/201491#M59560</guid>
      <dc:creator />
      <dc:date>2013-06-25T14:46:20Z</dc:date>
    </item>
  </channel>
</rss>

