<?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: trim file path in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666725#M242557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, use the subfield function.&amp;nbsp; subfield('c:/rootfolder/file2.txt','/',-1) . BTW you might want to check your example.. it has forward slashes when they're supposed to be '\'...&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2014 21:22:07 GMT</pubDate>
    <dc:creator>albertovarela</dc:creator>
    <dc:date>2014-10-20T21:22:07Z</dc:date>
    <item>
      <title>trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666723#M242555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have field like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:/rootfolder/file1.txt&lt;/P&gt;&lt;P&gt;c:/rootfolder/file2.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i trim the path and only get file1.txt&amp;nbsp; file2.txt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 21:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666723#M242555</guid>
      <dc:creator />
      <dc:date>2014-10-20T21:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666724#M242556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=subfield('c:/rootfolder/file1.txt', '/', 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or filename, from online help&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Returns a string containing the name of the table file currently being read, without path but including the extension. &lt;/EM&gt;&lt;/P&gt;&lt;P class="example"&gt;&lt;EM&gt;Example:&lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;Load *, filename( ) as X from&lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;C:\UserFiles\abc.txt&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Will return 'abc.txt' in field X in each record read. &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 21:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666724#M242556</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-20T21:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666725#M242557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, use the subfield function.&amp;nbsp; subfield('c:/rootfolder/file2.txt','/',-1) . BTW you might want to check your example.. it has forward slashes when they're supposed to be '\'...&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 21:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666725#M242557</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2014-10-20T21:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666726#M242558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can i direct output of this code into qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vRoot = 'C:\vbscript';&lt;/P&gt;&lt;P&gt;FOR Each Ext in 'qvd'&lt;/P&gt;&lt;P&gt;FOR Each File in filelist ('$(vRoot)'&amp;amp;'\*.'&amp;amp;Ext)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load subfield('$(File)','\',3) as Name, FileSize( '$(File)' ) as&lt;/P&gt;&lt;P&gt;&amp;nbsp; Size, FileTime( '$(File)' ) as FileTime&lt;/P&gt;&lt;P&gt;&amp;nbsp; autogenerate 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; next File&lt;/P&gt;&lt;P&gt;next Ext&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 21:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666726#M242558</guid>
      <dc:creator />
      <dc:date>2014-10-20T21:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666727#M242559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =subfield('c:/rootfolder/file1.txt', '/', 3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 09:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666727#M242559</guid>
      <dc:creator />
      <dc:date>2014-10-21T09:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666728#M242560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give your table a name then use the STORE statement:&amp;nbsp; e.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;set vRoot = 'C:\vbscript';&lt;/P&gt;&lt;P&gt;&amp;nbsp; FOR Each Ext in 'qvd'&lt;/P&gt;&lt;P&gt;&amp;nbsp; FOR Each File in filelist ('$(vRoot)'&amp;amp;'\*.'&amp;amp;Ext)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;EM&gt;TableList:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield('$(File)','\',-1)&amp;nbsp;&amp;nbsp; as Name,&amp;nbsp; //&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileSize( '$(File)' )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Size, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileTime( '$(File)' )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as FileTime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; autogenerate 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; next File&lt;/P&gt;&lt;P&gt;&amp;nbsp; next Ext&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE &lt;EM&gt;TableList&lt;/EM&gt; into C:\path\TableList.qvd&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 15:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666728#M242560</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2014-10-21T15:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666729#M242561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get syntax error and execution error when i do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;set vRoot = 'C:\vbscript';&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;TableList:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; FOR Each Ext in 'qvd'&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; FOR Each File in filelist ('$(vRoot)'&amp;amp;'\*.'&amp;amp;Ext)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp; &lt;EM style="font-weight: inherit; font-family: inherit;"&gt;TableList:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield('$(File)','\',-1)&amp;nbsp;&amp;nbsp; as Name,&amp;nbsp; //&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileSize( '$(File)' )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Size,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileTime( '$(File)' )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as FileTime&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp; autogenerate 1;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp; next File&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; next Ext&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;STORE &lt;EM style="font-weight: inherit; font-family: inherit;"&gt;TableList&lt;/EM&gt; into C:\path\TableList.qvd&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 20:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666729#M242561</guid>
      <dc:creator />
      <dc:date>2014-10-27T20:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666730#M242562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using a valid path?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 21:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666730#M242562</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2014-10-27T21:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666731#M242563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 21:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666731#M242563</guid>
      <dc:creator />
      <dc:date>2014-10-27T21:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666732#M242564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Delete the 3rd line on the script (where says TableList:). That will fix it. You are specifying the table name right before the LOAD statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 21:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666732#M242564</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2014-10-27T21:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666733#M242565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then it will complain table name Tablelist not found. without declaring table how can you store.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 21:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666733#M242565</guid>
      <dc:creator />
      <dc:date>2014-10-27T21:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: trim file path</title>
      <link>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666734#M242566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69804_Capture.PNG.png" style="width: 620px; height: 256px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 21:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trim-file-path/m-p/666734#M242566</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2014-10-27T21:36:48Z</dc:date>
    </item>
  </channel>
</rss>

