- ©«¤l
- 109
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 116
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2016-8-4
- ³Ì«áµn¿ý
- 2018-10-22
|
¦^´_ 1# modelcrazyer
ºô¸ô¤Wªº½d¨Ò§ïªº¡A°Ñ¦Ò¬Ý¬Ý¡C- Sub getDetailsOfFile()
- Dim objFSO As Object
- Dim objFolder As Object
- Dim objFile As Object
- Dim myShl As New Shell
- Dim curFolder As Folder
- Dim theItm As FolderItem
- Dim Fn As Variant
- Dim theTitle As String
- Dim outStr As String
- tarPath = "C:\Temp"
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Set objFolder = objFSO.GetFolder(tarPath)
- Set curFolder = myShl.Namespace(tarPath)
- For Each objFile In objFolder.Files
- If Right(objFile.Name, 3) = "JPG" Or Right(objFile.Name, 3) = "jpg" Then
- With curFolder
- fName = objFile.Name
- theTitle = .GetDetailsOf(fName, 12)
- If .GetDetailsOf(.Items.Item(fName), 12) <> "" Then
- outStr = fName & vbTab & theTitle & ": " & vbTab & .GetDetailsOf(.Items.Item(fName), 12)
- Debug.Print outStr
- End If
- End With
- End If
- Next objFile
- Set myShl = Nothing
- End Sub
½Æ»s¥N½X |
|