本帖最后由 batman 于 2013-10-26 12:43 编辑
来个VBS的,生成的列表在photo_list.txt中:- Dim objSHELL, objFSO
- Set objSHELL = CreateObject("Shell.Application")
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- Dim Path, File, objPath, objFile, Name, vbStr
- Path = objFSO.GetFile(WScript.ScriptFullName).ParentFolder
- Set objPath = objSHELL.NameSpace(Path)
- For Each File In objFSO.GetFolder(Path).Files
- If LCase(objFSO.GetExtensionName(File)) = "jpg" Then
- Name = File.ShortName
- Set objFile = objPath.ParseName(Name)
- For i = 0 To 50
- If objPath.GetDetailsOf(,i) = "相片拍照日期" Then _
- vbStr = vbStr & Name & vbTab & objPath.GetDetailsOf(objFile, i) & vbCrLf
- Next
- End If
- Next
- Set objFile = Nothing
- Set objPath = Nothing
- Set objSHELL = Nothing
- objFSO.OpenTextFile("photo_list.txt", 2, True).Write vbStr
- Set objFSO = Nothing
- WScript.Echo "OK"
复制代码
|