<?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: Reading line by line to get the size of each file with full path in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548815#M205021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally, I am loading your file like general text file and I put some filters to eliminate the unwanted rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where isnum(@3) --&amp;gt; this filter verifies file size field and its always no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Directory calculations: I assumed there should be only 2 directories and I am calculated based on length of the string. The Peek function is used to convert field values into variables and these variables are used to attach the path to filenames.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Nov 2013 12:17:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-20T12:17:58Z</dc:date>
    <item>
      <title>Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548806#M205012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to read the size of a file line by line from the below text file(Please see the attachment). As the below format can't be read as it is could you please help me to read through QV. Data should be loaded something like below after loaded into QV. Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;123,904 E:\QlikView\Weekly Data - Copy.qvw&lt;/P&gt;&lt;P&gt;143,872 E:\QlikView\Weekly Data.qvw&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;114,432 E:\QlikView\Data\DIR Space.qvw&lt;/P&gt;&lt;P&gt;1,551&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E:\QlikView\Data\EMPLOYEE.2013_34.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 02:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548806#M205012</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-20T02:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548807#M205013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached file for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP:&lt;/P&gt;&lt;P&gt;LOAD DATE#(@1,'DD-MM-YYYY') AS @1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @6, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @7&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;aaa.txt&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is spaces, msq)&lt;/P&gt;&lt;P&gt;Where isnum(@3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;LOAD DATE_C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME_C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIZE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(UPPER(SubField(FILE_NAME,'.',2))='QVW','E:\QlikView\'&amp;amp;FILE_NAME,'E:\QlikView\Data\'&amp;amp;FILE_NAME) AS FILE_NAME&lt;/P&gt;&lt;P&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD @1 AS DATE_C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 AS TIME_C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 AS SIZE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(LEN(TRIM(@5)),TRIM(@5&amp;amp;@6&amp;amp;@7),@4) AS FILE_NAME&lt;/P&gt;&lt;P&gt;Resident TEMP Where @3 &amp;lt;&amp;gt; 0 AND Year(@1) &amp;gt; 2000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TEMP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 04:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548807#M205013</guid>
      <dc:creator />
      <dc:date>2013-11-20T04:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548808#M205014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but I need the file name with complete path and the size only as shown in above post. I couldn't see path along with the file name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 04:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548808#M205014</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-20T04:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548809#M205015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;recheck my file again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 04:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548809#M205015</guid>
      <dc:creator />
      <dc:date>2013-11-20T04:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548810#M205016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Got the expected result. But the problem is path may not remain same. This is just the sample data which I have given. This will vary according to the path and also file may be of any format. We are planning to read all the directories from all the environment. I need a common code which can read any path and give the required out put. That's where I am stuck... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 04:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548810#M205016</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-20T04:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548811#M205017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached file and I am calculating the Directory based on the length of the string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 04:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548811#M205017</guid>
      <dc:creator />
      <dc:date>2013-11-20T04:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548812#M205018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Let me check and come back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know the reason behind calculating the size for QVW and other files? It would be great if you can provide me line by comments in your code for my better understanding.&amp;nbsp; In the mean time I will check and comeback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I guess you are considering only two directories? If yes, it is cumbersome to hardcode one by one directory. Please advice on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET v1 = Peek('F',0);&lt;/P&gt;&lt;P&gt;LET v2 = Peek('F',1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me if my understanding is wrong! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 06:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548812#M205018</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-20T06:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548813#M205019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any updates from anyone on this? Please help! It is little urgent...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 09:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548813#M205019</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-20T09:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548814#M205020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would do differently.&lt;/P&gt;&lt;P&gt;First, it is a TEXT file. So I would use @2:25 to read the columns from 2 to 25&lt;/P&gt;&lt;P&gt;I would populate a temp table and test after that the files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Temp1&lt;SPAN style="font-size: 10pt;"&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;LineNr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;lower&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;@2:13&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) = 'directory of', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;@15:80&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('Directory')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Directory&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;@36:80&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;LightFileName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;[aaa[1]].txt](&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;ansi&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;fix&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;no&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;header&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; 2 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;WHERE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;@23:25&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;lt;&amp;gt; 'DIR'; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;TableFile&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Directory&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;amp; '\' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;LightFileName&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;CompleteFileName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;Temp1&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;LightFileName&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;lt;&amp;gt; '' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Filesize&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Directory&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;amp; '\' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;LightFileName&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;gt; 0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;@n:m : returns the value of a TEXT file between n and m columns&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;peek function return the value of a previous line&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Filesize returns the size of the file: if it does not exists, it returns 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Fabrice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 10:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548814#M205020</guid>
      <dc:creator />
      <dc:date>2013-11-20T10:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548815#M205021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally, I am loading your file like general text file and I put some filters to eliminate the unwanted rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where isnum(@3) --&amp;gt; this filter verifies file size field and its always no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Directory calculations: I assumed there should be only 2 directories and I am calculated based on length of the string. The Peek function is used to convert field values into variables and these variables are used to attach the path to filenames.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548815#M205021</guid>
      <dc:creator />
      <dc:date>2013-11-20T12:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548816#M205022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I modified the script and find the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 13:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548816#M205022</guid>
      <dc:creator />
      <dc:date>2013-11-20T13:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548817#M205023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anything working with all the answers ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 13:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548817#M205023</guid>
      <dc:creator />
      <dc:date>2013-11-20T13:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548818#M205024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dathu,&lt;/P&gt;&lt;P&gt;Thanks, I will try and let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Fabrice&lt;/P&gt;&lt;P&gt;Got stuck with few things. Will keep you updated on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 13:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548818#M205024</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-20T13:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548819#M205025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dathu,&lt;/P&gt;&lt;P&gt;It is working with the same file which I have provided. But the same is not working when I am using with my data &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;. As I am not able to understand the logic of your code. I couldn't implement the same in mine &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;. Let me understand it and will try to do something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 14:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548819#M205025</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-20T14:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548820#M205026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Failed to implement with my data. Still couldn't get the desired out put. Please see if you can do any changes which was work anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to achieve with my data. May be the fields which you are taking is per the sample which I have given.(i.e @15:36,@37:80 is per the sample which I have given. I don't know what should I consider with my data &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;). Please help me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 18:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548820#M205026</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-20T18:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548821#M205027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had a quick play.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the following approach will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Use this script in a batch file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"&gt;forfiles /s /c "cmd /c if @isdir==FALSE echo @path @fsize" &amp;gt; filedata.txt&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) read the text file into qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 12:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548821#M205027</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2013-11-22T12:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reading line by line to get the size of each file with full path</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548822#M205028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You. I am very bad in batch programming. So please tell me where I should be passing the DIR which I want to scan it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, If I want to scan&lt;STRONG&gt; C:\Program Files\Common Files&lt;/STRONG&gt; where I should be passing that in the batch file. Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this works that would be great. But if this works as per it was expected then my question will be how pass the multiple directories at the same time as we would like to scan it at a time and have the output saved in a single file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad that you have helped me on this. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 13:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-line-by-line-to-get-the-size-of-each-file-with-full-path/m-p/548822#M205028</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-22T13:29:13Z</dc:date>
    </item>
  </channel>
</rss>

