Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to output date created and date modified?
#3
found this in the forum later


Function get_file_extended_properties1
Code:
Copy      Help
;Gets only specified columns
out
str folder="$desktop$\test"
folder.expandpath
str filename="1.jpg"
str getColumns="Date taken"

Shell32.Shell x._create
Shell32.Folder f=x.NameSpace(folder)
;get column names
ARRAY(str) columns
int i
for(i 0 1000000) _s=f.GetDetailsOf(0 i); if(_s.len) columns[]=_s; else break
;for(i 0 columns.len) out columns[i];;uncomment to see all column names

;find indices of columns specified in getColumns
ARRAY(int) colIndices
foreach _s getColumns
,for(i 0 columns.len) if(_s=columns[i]) colIndices[]=i; break

;display data of specified columns of the file
Shell32.FolderItem k=f.ParseName(filename)
str name=k.Name
for i 0 colIndices.len
,int j=colIndices[i]
,_s=f.GetDetailsOf(k j)
,out F"{columns[j]}={_s}"


topic with more functions startsĀ 
http://www.quickmacros.com/forum/showthr...7#pid25547


Messages In This Thread
RE: How to output date created and date modified? - by Kevin - 08-03-2019, 03:13 PM

Forum Jump:


Users browsing this thread: 6 Guest(s)