Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract metadata from files like in Win Explorer
Message
From
23/12/2005 02:38:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01080411
Message ID:
01080434
Views:
20
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>I found code to extract the metadata(Artist, resolution, bitrate, duration) from files but it work for a whole folder and I want to do it for only one file. I have a folder,subfolder with a lot of mp3,mov,wmv and this will take more time. How?
>
>Thank's in advance for you answers.
>
>
>loShell = CreateObject("Shell.Application")
>loFolder = loShell.Namespace("F:\trailers")
>
>For Each lcFileName in loFolder.Items
>   FOR t= 0 TO 34
>       ? "File name "+STR(t,2)+": "+ loFolder.GetDetailsOf(lcFileName, t)
>   ENDFOR
>Next
>
>RETURN
>
loShell = Createobject("Shell.Application")
loFolder = loShell.Namespace("c:\windows\media")
lcSingleFile = "Windows XP Startup.wav"
loItem = loFolder.ParseName(m.lcSingleFile)
If !Isnull(loItem)
  For ix= 0 To 34
    ? "File name "+Str(m.ix,2)+": "+ ;
      loFolder.GetDetailsOf(loItem, m.ix)
  Endfor
Else
  ? "File doesn't exist"
Endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform