Hallo Zusammen,
wenn es intressiert:
Habe dies so umgesetzt:
Dim objShell As Shell32.IShellDispatch2
Dim objFSO As Scripting.FileSystemObject
Dim strDir As String
Dim objFolder As Scripting.Folder
Dim objFolder2 As Shell32.Folder2
Dim test As Shell32.FolderItem2
'Dim LastExtPos As Short
Dim fso As New Scripting.FileSystemObject
Dim fso1 As New Scripting.FileSystemObject
objFSO = CType(CreateObject("Scripting.FileSystemObject"), Scripting.FileSystemObject)
objFolder = objFSO.GetFolder("C:\TEMP\")
strDir = CStr(objFolder.Path)
objShell = CType(CreateObject("Shell.Application"), Shell32.IShellDispatch2)
objFolder2 = CType(objShell.NameSpace("" & strDir & ""), Shell32.Folder2)
txtFilePath.Text = Dir("C:\TEMP\*.pdf")
test = CType(objFolder2.ParseName(txtFilePath.Text), Shell32.FolderItem2)
Debug.Print(objFolder2.GetDetailsOf(test, 8))
txtInfo.Text = objFolder2.GetDetailsOf(test, 8)
txtFilePath.Text = test.Name
txtInfo.Text = UCase(txtInfo.Text)
txtInfo.Text = Mid(txtInfo.Text, 8, 5)
Verweise auf:
Microsoft Scripting Runtime und
Microsoft Shell Controls and Automation
Schöne Grüße
Feyza : )
------------------
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP