Fellow Forum Members,
In my Windows 7 Command Prompt window I'm using the DOS command shown below to print a list of all my wedding video clips and associated subdirectories:
This command generates a text file with these details: File Name, File Size, and Date. The missing detail is for LENGTH which displays in the Windows Explorer window as " 00:33:04 "
What switch do I need to use in my DOS command so that the LENGTH detail is included in my text list? I have GOOGLED this and I can't find any DOS switch that will activate the LENGTH detail. Any help will be greatly appreciated. Thanks
Want to enjoy fewer advertisements and more features? Click here to become a Hardware Analysis registered user.
If including the LENGTH detail can't be done using the DOS Command prompt window I would be open to any suggestions for a FREE application that would let me create a text file of all files in a subdirectories with these details:
File Name, Date, File Size, Length
Note that the link above is old. For Win7, there are hundreds of extended file properties! That's not all, they've moved the index number of the properties as well. "Duration" now has an index of 36. You can find that out by running the VBS script in the link above, but edit the for loop to go, say from 0 to 100.
As far as I know, you can't obtain extended file properties using batch commands. You can use VBS scripts or Powershell scripts. And it won't be a one liner! You need to declare some objects, for loops, and use the GetDetailsOf (filename, index) function.
You might also try looking at some of the alternatives to Windows Explorer...LIKE Explorer2, XYplorer, etc. The free (and even the non-free) versions may or may not be able to provide this specific datum in Win7. But, these kinds of Explorer-alternative programs typically provide a LOT more flexibility and power than Windows Explorer provides so the chances are good that one may meet your needs.
All I'm doing here is letting you know that alternatives to Explorer exist. You will need to do the detailed research to see if any meet your needs.
Also, features and "freeware" version availability may have changed since I last looked at these programs.