im using the following code to display the properties-window for a file/folder:
Code: Select all
Procedure ShowFileProperties(FileName$)
Protected Result, CoInit, shell.SHELLEXECUTEINFO\cbSize = SizeOf(SHELLEXECUTEINFO)
CoInit = CoInitializeEx_(0, #COINIT_APARTMENTTHREADED | #COINIT_DISABLE_OLE1DDE)
If CoInit = CoInit & 1
shell\fMask = #SEE_MASK_INVOKEIDLIST
shell\lpVerb = @"properties"
shell\lpFile = @FileName$
shell\nShow = #SW_SHOW
If ShellExecuteEx_(@shell)
Result = #True
EndIf
CoUninitialize_()
EndIf
ProcedureReturn Result
EndProcedure
ShowFileProperties("C:\test.txt")
Delay(3000)

c ya,
nco2k