<?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: Extract csv files from multiple folders in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949973#M971588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you try this, does it load all CSVs in &lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.66px;"&gt;d:\source?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub LoadCSV (folder)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each File in filelist (folder&amp;amp;'\*.csv')&lt;/P&gt;&lt;P&gt; Load * from '$(File)';&lt;/P&gt;&lt;P&gt;Next File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call LoadCSV ('&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.66px;"&gt;d:\source&lt;/SPAN&gt;')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2015 13:45:39 GMT</pubDate>
    <dc:creator>Ralf-Narfeldt</dc:creator>
    <dc:date>2015-09-15T13:45:39Z</dc:date>
    <item>
      <title>Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949965#M971580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam currently facing&amp;nbsp; a problem.Iam using the following script to extract multiple excel files &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;idx=1&lt;/P&gt;&lt;P&gt;for each subdir in dirlist(*.csv)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....from $(subdir)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;idx=idx+1&lt;/P&gt;&lt;P&gt;next subdir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script runs and extract all the files.The problem here is it considers only the path where the qvw file is there. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e the source files and the qvw file should exist in the same path. If the source files are moved to another directory it gives me the error source file not found..iam not sure from how the path takes by itself.. also my relative path is unchecked..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 19:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949965#M971580</guid>
      <dc:creator />
      <dc:date>2015-09-14T19:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949966#M971581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search QV Help for the word "DoDir", and you'll see an example that does what you need. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 20:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949966#M971581</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-09-14T20:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949967#M971582</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;Can you let me know how can I call subroutine in multiple load statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;sub&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Folder&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Root&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;each&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;FileExtension&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 'csv'&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;each&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;FoundFile&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dirlist&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Root&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; '\*.' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FileExtension&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; &lt;BR /&gt;LOAD ,&amp;nbsp; from $foundfile &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; next FoundFile&lt;BR /&gt;&amp;nbsp; next FileExtension&lt;BR /&gt;&amp;nbsp; for each FoundFileectory in dirlist( Root &amp;amp; '\*' )&lt;BR /&gt;&amp;nbsp; call ScanFolder(FoundFileectory)&lt;BR /&gt;&amp;nbsp; next FoundFileectory&lt;BR /&gt;&amp;nbsp; end sub &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Call Sub ( ...........path);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;LOAD , from .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Should I end&amp;nbsp; the sub routine&amp;nbsp; after all the load statements or should I need to call sub routine in each and every load statements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 09:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949967#M971582</guid>
      <dc:creator />
      <dc:date>2015-09-15T09:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949968#M971583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested with DoDir as well but it does not work. both the qvw and the files should remain in the same directory. If I maintain the qvw in one dir and the files in other . it would raise the script error. file not found...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 09:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949968#M971583</guid>
      <dc:creator />
      <dc:date>2015-09-15T09:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949969#M971584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't call the subroutine in a load statement.&lt;/P&gt;&lt;P&gt;The subroutine can contain one or more load statements in itself.&lt;/P&gt;&lt;P&gt;If you want to, you can call the subroutine more than once, and even itself recursively.&lt;/P&gt;&lt;P&gt;As you see in the DoDir example below, it calls itself within the For Each Dir, and will thus continue through the structure of sub-directories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;// Example 2 - List all QV related files on disk&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;sub DoDir (Root)&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="margin-right: 40px; margin-bottom: 1em; margin-left: 40px; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt;"&gt;For Each Ext in 'qvw', 'qvo', 'qvs', 'qvt', 'qvd', 'qvc', 'qvf'&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="margin-right: 40px; margin-bottom: 1em; margin-left: 40px;"&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt;"&gt;For Each File in filelist (Root&amp;amp;'\*.' &amp;amp;Ext)&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="margin-right: 40px; margin-bottom: 1em; margin-left: 40px;"&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt;"&gt;LOAD&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="margin-right: 40px; margin-bottom: 1em; margin-left: 40px;"&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt;"&gt;'$(File)' as Name, FileSize( '$(File)' ) as&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt;"&gt;Size, FileTime( '$(File)' ) as FileTime&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt;"&gt;autogenerate 1;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt;"&gt;Next File&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt;"&gt;Next Ext&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt;"&gt;For Each Dir in dirlist (Root&amp;amp;'\*' )&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="margin-right: 40px; margin-bottom: 1em; margin-left: 40px;"&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt;"&gt;&lt;SPAN class="SearchHighlight SearchHighlight1" style="color: inherit; background-color: transparent !important; background-position: no-repeat;"&gt;Call&lt;/SPAN&gt; DoDir (Dir)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt;"&gt;Next Dir&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;End Sub&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&lt;SPAN class="SearchHighlight SearchHighlight1" style="color: inherit; background-color: transparent !important; background-position: no-repeat;"&gt;Call&lt;/SPAN&gt; DoDir ('C:')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 09:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949969#M971584</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-09-15T09:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949970#M971585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In dirlist and filelist you need to specify the path like &lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.6667px;"&gt;filelist ('c:\mydata\*.csv' ) if they are in another folder&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 09:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949970#M971585</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-09-15T09:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949971#M971586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;My Subroutine is good enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the path issue still exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to change the path in both dirlist and filelist. But it gives me the same error. Its again looking for the source documents where the QVW is placed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both in dirlist and file list I changed the path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.66px;"&gt;filelist ('d:\source\*.csv' ) and dirlist&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.66px;"&gt;('c:\mydata\*.csv' )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 12:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949971#M971586</guid>
      <dc:creator />
      <dc:date>2015-09-15T12:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949972#M971587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.66px;"&gt;filelist ('d:\source\*.csv' ) and dirlist&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.66px;"&gt;('&lt;SPAN style="color: #444444; font-family: Lucida Console;"&gt;'d:\source\*.csv' &lt;/SPAN&gt;' ) - Sorry its the same.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 12:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949972#M971587</guid>
      <dc:creator />
      <dc:date>2015-09-15T12:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949973#M971588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you try this, does it load all CSVs in &lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.66px;"&gt;d:\source?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub LoadCSV (folder)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each File in filelist (folder&amp;amp;'\*.csv')&lt;/P&gt;&lt;P&gt; Load * from '$(File)';&lt;/P&gt;&lt;P&gt;Next File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call LoadCSV ('&lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.66px;"&gt;d:\source&lt;/SPAN&gt;')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949973#M971588</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-09-15T13:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949974#M971589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this needs to be with in the sub routine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949974#M971589</guid>
      <dc:creator />
      <dc:date>2015-09-15T15:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949975#M971590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rathish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be use UNC path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="margin: 0 0 0.2em; font-weight: normal; font-size: 18px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #103e4e;"&gt;UNC paths&lt;/H2&gt;&lt;P style="margin: 0.5em 0 0.5em 10px; font-size: 12.8000001907349px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000;"&gt;UNC stands for Universal (or Uniform or Unified) Naming Convention and is a syntax for accessing folders and files on a network of computers. The syntax is as shown:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.5em 0 0.5em 10px; font-size: 12.8000001907349px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000;"&gt;\\&amp;lt;computer name&amp;gt;\&amp;lt;shared directory&amp;gt;\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.5em 0 0.5em 10px; font-size: 12.8000001907349px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.8000001907349px;"&gt;followed by any number of directories and terminated with a directory or file name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.5em 0 0.5em 10px; font-size: 12.8000001907349px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000;"&gt;The computer name is always preceded by a double backward slash (&lt;SPAN class="usertext" style="font-weight: inherit; font-style: inherit; font-size: 12.8000001907349px; font-family: 'Courier New', Courier, monospace;"&gt;\\&lt;/SPAN&gt;).&lt;/P&gt;&lt;P style="margin: 0.5em 0 0.5em 10px; font-size: 12.8000001907349px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000;"&gt;In UNC, the computer name is also known as the host name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949975#M971590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-15T15:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949976#M971591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with UNC ..it did not work..but on the other hand it not raise the script error. the script ran and nothing got loaded. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 21:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949976#M971591</guid>
      <dc:creator />
      <dc:date>2015-09-15T21:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949977#M971592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 06:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949977#M971592</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-09-16T06:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949978#M971593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub GetCSVFIleNames(Root)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each FoundFile in filelist( Root &amp;amp; '\*.csv')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FoundFile = right('$(FoundFile)', 8);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product:&lt;BR /&gt;LOAD &lt;/P&gt;&lt;P&gt; Customer Number, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer Name, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product name] as [Product Name], &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product&amp;nbsp; number] as [Product Number]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;FROM&lt;BR /&gt;['$(FoundFile)'\file1-'$(FoundFile)']&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq, header is 1 lines);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next FoundFile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each SubDirectory in dirlist( Root &amp;amp; '\*' )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call GetCSVFIleNames(SubDirectory)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next SubDirectory&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call GetCSVFIleNames('H:/') ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 06:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949978#M971593</guid>
      <dc:creator />
      <dc:date>2015-09-22T06:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949979#M971594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have several small mistakes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand what you do with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;FoundFile = right('$(FoundFile)', 8);&lt;/EM&gt; and&lt;EM&gt; &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;['$(FoundFile)'\file1-'$(FoundFile)']&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is this to deal with some file name filter?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the LOAD statement you were missing some brackets around field names, and you had two spaces in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;[Product&amp;nbsp; number]&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The code below should work to load all csv files, but if you have some further limitations of which files to load you need to state them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;sub GetCSVFIleNames(Root)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each FoundFile in filelist( Root &amp;amp; '\*.csv')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; line-height: 1.5em;"&gt;LOAD [Customer Number], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Customer Name], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product name], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product number]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM '$(FoundFile)' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (txt, codepage is 1252, embedded labels, delimiter is ',', msq, header is 1 lines);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next FoundFile&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each SubDirectory in dirlist( Root &amp;amp; '\*' )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call GetCSVFIleNames(SubDirectory);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next SubDirectory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;end sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;Call GetCSVFIleNames('C:\Temp');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949979#M971594</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-09-22T07:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949980#M971595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benny,&lt;/P&gt;&lt;P&gt;Please try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1306"&gt;Loading data from multiple xls-files from folder with subfolder&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949980#M971595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-22T07:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949981#M971596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neetha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Load works. but iam facing 2 problems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All my files are placed in a folders like 2014.csv /2015.csv etc.. so the csv&amp;nbsp; file names are like file1-2014. so here file1-2014 needs to be into product. similarly I have file2-2014...etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub GetCSVFIleNames(Root)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each FoundFile in filelist( Root &amp;amp; '\*.csv')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FoundFile = right('$(FoundFile)', 8); if I keep this line..it takes always files from the source where the qvw file is placed.. it will not consider the H drive which I have given below. if I remove this H drive works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product:&lt;BR /&gt;LOAD &lt;/P&gt;&lt;P&gt; Customer Number, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer Name, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product name] as [Product Name], &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product&amp;nbsp; number] as [Product Number]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;FROM&lt;BR /&gt;['$(FoundFile)'\file1-'$(FoundFile)']&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq, header is 1 lines);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next FoundFile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each SubDirectory in dirlist( Root &amp;amp; '\*' )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call GetCSVFIleNames(SubDirectory)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next SubDirectory&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call GetCSVFIleNames('H:/') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second problem is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H:\2014.csv\file1-H:\2014.csv' - I getting file not found error. in actual it should be 2014.csv\file1-2014.csv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should not reflect H Drive in the path.. it should only display the file name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949981#M971596</guid>
      <dc:creator />
      <dc:date>2015-09-22T08:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949982#M971597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ralf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;FoundFile = right('$(FoundFile)', 8);&lt;/EM&gt; &lt;/SPAN&gt; is iam looking folders specifically like 2014.csv and 2015.csv etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and under each folder&lt;/P&gt;&lt;P&gt;for ex: 2014.csv &amp;gt;&amp;gt; contains&lt;/P&gt;&lt;P&gt;file1-2014.csv&lt;/P&gt;&lt;P&gt;file2-2014.csv&lt;/P&gt;&lt;P&gt;file3-2014.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's the reason I have put as ['$(FoundFile)'\file1-'$(FoundFile)'] &amp;gt; so output will be 2014.csv\file-2014.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is each file is dedicated to each load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if put just as from ['$(FoundFile)'] .it also tries to load the same file as below and gives an error field not found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product:&lt;BR /&gt;LOAD &lt;/P&gt;&lt;P&gt; Customer Number, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer Name, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product name] as [Product Name], &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product&amp;nbsp; number] as [Product Number]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;FROM&lt;BR /&gt;['$(FoundFile)']&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq, header is 1 lines);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer:&lt;BR /&gt;LOAD &lt;/P&gt;&lt;P&gt; Customer Name, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; First Name, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Address] as [Address] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;FROM&lt;BR /&gt;['$(FoundFile)']&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq, header is 1 lines);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so actually it should be as below.. so this case it is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt; Customer Number, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer Name, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product name] as [Product Name], &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product&amp;nbsp; number] as [Product Number]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;FROM&lt;BR /&gt;['$(FoundFile)'\file1-'$(FoundFile)']&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq, header is 1 lines);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer:&lt;BR /&gt;LOAD &lt;/P&gt;&lt;P&gt; Customer Name, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; First Name, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Address] as [Address] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;['$(FoundFile)'\file2-'$(FoundFile)']&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq, header is 1 lines);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949982#M971597</guid>
      <dc:creator />
      <dc:date>2015-09-22T08:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949983#M971598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But when you do:&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FoundFile = right('$(FoundFile)', 8);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;you strip away the search path, so it becomes like 2014.csv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means this won't work:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;['$(FoundFile)'\file1-'$(FoundFile)']&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;You don't have the path anymore in FoundFile.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I think this is easier, using the filelist filter mask:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sub GetFiles(Root)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each FoundFile in filelist( Root &amp;amp; '\file1*.csv')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD [Customer Number], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Customer Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product number]&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM '$(FoundFile)' &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (txt, codepage is 1252, embedded labels, delimiter is ',', msq, header is 1 lines);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next FoundFile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each FoundFile in filelist( Root &amp;amp; '\file2*.csv')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Customer Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [First Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Address]&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM '$(FoundFile)' &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (txt, codepage is 1252, embedded labels, delimiter is ',', msq, header is 1 lines);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next FoundFile&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each SubDirectory in dirlist( Root &amp;amp; '\*' )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call GetFiles(SubDirectory);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next SubDirectory&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call GetFiles('C:\Temp');&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 09:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949983#M971598</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-09-22T09:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extract csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949984#M971599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ralf, even this holds good..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 06:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-csv-files-from-multiple-folders/m-p/949984#M971599</guid>
      <dc:creator />
      <dc:date>2015-09-24T06:54:27Z</dc:date>
    </item>
  </channel>
</rss>

