<?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: Get  attributes from files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334175#M705093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I remember correctly, it can read EXIF tags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there are many more file attributes. How to put attributes on files is not really standardized; or rather, there exist several methods. So, you will find that there are a number of cases where it cannot read the attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Nov 2013 16:20:15 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-11-07T16:20:15Z</dc:date>
    <item>
      <title>Get  attributes from files</title>
      <link>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334167#M705085</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;In my scirpt, I load xls files, with FileName, FileSize, FileTime...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the name of the person who created the .xls. Can i do this whith attribute() ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt; subfield('$(File)','\',-1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;as FileName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FileSize( '$(File)' )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;as FileSize, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Round(FileSize( '$(File)' )/1048576)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;as FileSizeMB, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Round(FileSize( '$(File)' )/1073741824)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;as FileSizeGB, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FileTime( '$(File)' )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;as FileTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mid(subfield('$(File)','\',-1),2,4) as FileYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Attribute('$(File)','Auteur') as Auteur &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it in the last line with 'Auteur' (I'm french) but it doesn't work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 10:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334167#M705085</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-04-03T10:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get  attributes from files</title>
      <link>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334168#M705086</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;&lt;/P&gt;&lt;P&gt;I couldn't get Attribute() to work either, althought the help file says it should.&amp;nbsp; You can get this info by using a function in your module script and calling it in script - there's basically three methods here (FSO,Shell &amp;amp; WMI) but some attributes can be obtained by more than one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION&lt;/P&gt;&lt;P&gt;Function strFileProps (File)&lt;/P&gt;&lt;P&gt;'Details via FSO&lt;BR /&gt;Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;If objFSO.FileExists(File) Then&lt;BR /&gt;Set objFile = objFSO.GetFile(File)&lt;/P&gt;&lt;P&gt;strFileProps = strFileProps &amp;amp; "File name: " &amp;amp; objFile.Name &amp;amp; VbCrLf&lt;BR /&gt;tmp2 = objFile.Name 'for shell32 code&lt;BR /&gt;strFileProps = strFileProps &amp;amp; "File path: " &amp;amp; objFile.Path &amp;amp; VbCrLf&lt;BR /&gt;strFileProps = strFileProps &amp;amp; "Folder placed on drive: " &amp;amp; objFile.Drive &amp;amp; VbCrLf&lt;BR /&gt;strFileProps = strFileProps &amp;amp; "Date created: " &amp;amp; objFile.DateCreated &amp;amp; VbCrLf&lt;BR /&gt;strFileProps = strFileProps &amp;amp; "Date last accessed: " &amp;amp; objFile.DateLastAccessed &amp;amp; VbCrLf&lt;BR /&gt;strFileProps = strFileProps &amp;amp; "Date last modified: " &amp;amp; objFile.DateLastModified &amp;amp; VbCrLf&lt;BR /&gt;strFileProps = strFileProps &amp;amp; "Parent folder: " &amp;amp; objFile.ParentFolder &amp;amp; VbCrLf&lt;BR /&gt;tmp = objFile.ParentFolder 'for shell32 code&lt;BR /&gt;strFileProps = strFileProps &amp;amp; "File size: " &amp;amp; objFile.Size &amp;amp; " bytes" &amp;amp; VbCrLf&lt;BR /&gt;strFileProps = strFileProps &amp;amp; "File size: " &amp;amp; objFile.Attributes &amp;amp; " bytes" &amp;amp; VbCrLf&lt;BR /&gt;if objFile.attributes and 1 then&lt;BR /&gt;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Read-Only: YES" &amp;amp; VbCrLf&lt;BR /&gt;else&lt;BR /&gt;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Read-Only: NO" &amp;amp; VbCrLf&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;'get additional file details via shell32.dll&lt;BR /&gt;set shell = CreateObject("Shell.Application")&lt;BR /&gt;set objFolder = shell.NameSpace(tmp)&lt;BR /&gt;set objFolderItems = objFolder.Items()&lt;/P&gt;&lt;P&gt;For Each objItem in objFolderItems&lt;/P&gt;&lt;P&gt;If objItem = tmp2 then&lt;BR /&gt;&amp;nbsp; strFileProps = strFileProps &amp;amp; "File Size: " &amp;amp; objFolder.GetDetailsOf(objItem,1) &amp;amp; VbCrLf &lt;BR /&gt;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Type: " &amp;amp; objFolder.GetDetailsOf(objItem,2) &amp;amp; VbCrLf &lt;BR /&gt;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Last Modified: " &amp;amp; objFolder.GetDetailsOf(objItem,3) &amp;amp; VbCrLf &lt;BR /&gt;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Date Created: " &amp;amp; objFolder.GetDetailsOf(objItem,4) &amp;amp; VbCrLf &lt;BR /&gt;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Last Accessed: " &amp;amp; objFolder.GetDetailsOf(objItem,5) &amp;amp; VbCrLf&lt;BR /&gt;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Attributes: " &amp;amp; objFolder.GetDetailsOf(objItem,6) &amp;amp; VbCrLf &lt;BR /&gt;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Status: " &amp;amp; objFolder.GetDetailsOf(objItem,7) &amp;amp; VbCrLf &lt;BR /&gt;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Owner: " &amp;amp; objFolder.GetDetailsOf(objItem,8) &amp;amp; VbCrLf &lt;BR /&gt;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Author: " &amp;amp; objFolder.GetDetailsOf(objItem,9) &amp;amp; VbCrLf '9 = author&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;'get owner- alternative method&lt;BR /&gt;Set objWMIService = getObject("winmgmts:")&lt;BR /&gt;Set objFileSecuritySettings = objWMIService.Get("Win32_LogicalFileSecuritySetting='" &amp;amp; File &amp;amp; "'")&lt;BR /&gt;intRetVal = objFileSecuritySettings.GetSecurityDescriptor(objFile)&lt;/P&gt;&lt;P&gt;If intRetVal = 0 Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Owner: " &amp;amp; objFile.Owner.Domain &amp;amp; "\" &amp;amp; objFile.Owner.Name&lt;BR /&gt;Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strFileProps = strFileProps &amp;amp; "Couldn't retrieve security descriptor."&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;Else&lt;BR /&gt;strFileProps = "Selected file does not exist!"&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. then in your load script ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x = strFileProps(yourfile);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 13:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334168#M705086</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-04-03T13:08:36Z</dc:date>
    </item>
    <item>
      <title>Get  attributes from files</title>
      <link>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334169#M705087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This i a good example of using function in script. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 09:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334169#M705087</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-04-04T09:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Get  attributes from files</title>
      <link>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334170#M705088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here (below attachment) is a .QVW and a screenshot of the result from this solution. It works very well. Please note the appropriate settings in the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note to use: LET AttributeX = strFileProps('C:\Temp\task1.bat'); - so the variable is assigned appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="FileAttributes2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/48641_FileAttributes2.png" style="width: 620px; height: 507px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="48640" alt="11-6-2013 9-40-06 AM.png" class="jive-image" src="/legacyfs/online/48640_11-6-2013 9-40-06 AM.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/59964"&gt;flipside&lt;/A&gt; - for this awesome and comprehensive solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael Tarallo&lt;/P&gt;&lt;P&gt;Sr. Technical Product Marketing Manager&lt;BR /&gt;QlikView and QlikView Expressor&lt;BR /&gt;&lt;A href="https://twitter.com/mtarallo"&gt;@mtarallo&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 14:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334170#M705088</guid>
      <dc:creator>Michael_Tarallo</dc:creator>
      <dc:date>2013-11-06T14:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get  attributes from files</title>
      <link>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334171#M705089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following works fine on my computer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;For&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;each&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;vFileName&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;in&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FileList&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('&amp;lt;Path1&amp;gt;\*.jpg')&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Load&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; '$(vFileName)' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Lower&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vFileName)','.',-1)) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FileExtension&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Attribute&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vFileName)','Model') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Model&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Attribute&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vFileName)','Make') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Make&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Attribute&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vFileName)','ColorSpace') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ColorSpace&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Attribute&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vFileName)','ExposureTime') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ExposureTime&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Autogenerate&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; 1;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Next&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;vFileName&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;For&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;each&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;vFileName&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;in&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FileList&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('&amp;lt;Path2&amp;gt;\*.mp3')&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Load&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; '$(vFileName)' &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Lower&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vFileName)','.',-1)) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FileExtension&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Attribute&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vFileName)','Album') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Album&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Attribute&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vFileName)','Artist') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Artist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Attribute&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vFileName)','Title') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Title&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Attribute&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vFileName)','Track') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Track&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Attribute&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vFileName)','Year') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Autogenerate&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; 1;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Next&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;vFileName&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 10:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334171#M705089</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-11-07T10:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get  attributes from files</title>
      <link>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334172#M705090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi HIC - does that work for any other file type? - I believe Attribute() only works for images and other media as per the help doc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted this on a .txt file and it did not work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we know what tokens to use for other file type attributes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 14:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334172#M705090</guid>
      <dc:creator>Michael_Tarallo</dc:creator>
      <dc:date>2013-11-07T14:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get  attributes from files</title>
      <link>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334173#M705091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From Helpfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the value of the meta tags of different file formats, e.g. MP3, WMA, WMV and JPG files, as text. &lt;/P&gt;&lt;P&gt;Filename is the name of a media file including path, if needed. &lt;/P&gt;&lt;P&gt;Attributename is the name of a meta tag. &lt;/P&gt;&lt;P&gt;If the file filename does not exist, is not a supported file format or does not contain a meta tag named attributename, null will be returned. &lt;/P&gt;&lt;P&gt;A large number of meta tags can be used, e.g. ‘Artist’ or ‘Date Picture Taken’. The supported tags can automatically be generated in the script. The keyboard shortcut for this generation is Ctrl + Q,J,P,G for jpg files (keep the Ctrl key pressed while typing the QJPG combination), Ctrl + Q,M,P,3 for mp3 files and Ctrl + Q,W,M,A for wma files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 14:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334173#M705091</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2013-11-07T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get  attributes from files</title>
      <link>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334174#M705092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So Attribute() is for just media file types - Correct? (MP3, WMA, WMV and JPG files) - not PPT, XLS, TXT - etc. I wanted to make sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 14:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334174#M705092</guid>
      <dc:creator>Michael_Tarallo</dc:creator>
      <dc:date>2013-11-07T14:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get  attributes from files</title>
      <link>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334175#M705093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I remember correctly, it can read EXIF tags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there are many more file attributes. How to put attributes on files is not really standardized; or rather, there exist several methods. So, you will find that there are a number of cases where it cannot read the attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 16:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-attributes-from-files/m-p/334175#M705093</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-11-07T16:20:15Z</dc:date>
    </item>
  </channel>
</rss>

