prvo, evo celog koda (ako neko naidje da ne mora da ide na onaj link
):
Code:
Private Sub fnFolderItemVerbNameVB()
Dim objShell As Shell
Dim objFolder2 As Folder2
Dim ssfPROGRAMS As Long
ssfPROGRAMS = 2
Set objShell = New Shell
Set objFolder2 = objShell.NameSpace(ssfPROGRAMS)
If (Not objFolder2 Is Nothing) Then
Dim objVerbs As FolderItemVerbs
Set objVerbs = objFolder2.Self.Verbs
If (Not objVerbs Is Nothing) Then
Dim szReturn As String
szReturn = objVerbs.Item(0).Name
Debug.Print szReturn
End If
Set objVerbs = Nothing
End If
Set objFolder2 = Nothing
Set objShell = Nothing
End Sub
e gresku mi prijavljuje ovde:
Code:
Set objVerbs = objFolder2.Self.Verbs
kaze: "Object doesn't support this property or method" i upravu je pogledao sam Folder klasu u Object Exploreru i ona nema 'Self' kao folder2.
Stvarno ne znam sta da radim.
A dal mogu sa api-jem da izvucem target file iz precice?