Marco to make list of attributes for directory of movie file

mk000

Board Regular
Joined
Dec 10, 2004
Messages
234
I am using the code below to put a list of file names in column A. Can anyone add to subsequent columns info on duration (run time), resolution, codecs used (audio or video), or anything else?
Thanks!
MK


Sub ListOfFiles()
Dim lCtr As Long, strFile As String
Const strMyDir As String = "D:\movies\"

With Sheet1
lCtr = 1
strFile = Dir(strMyDir)
Do Until strFile = ""
.Cells(lCtr, 1).Value = strFile
lCtr = lCtr + 1
strFile = Dir()
Loop
End With

End Sub
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Anyone???? I want to add in columns with additional info... resolution, files size, audio and video codecs used if possible, runtime...etc
 
Upvote 0

Forum statistics

Threads
1,203,619
Messages
6,056,325
Members
444,860
Latest member
Daz511

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top