02-08-2019, 07:29 PM
Function ShellObjectExists
Maybe not the best way. Little tested.
;/
function! $path
;Returns 1 if the specified shell object exists, 0 if not.
;path - can be a file system path, ":: ITEMIDLIST" or "::{CLSID}". Cannot be a display name, like "Control Panel".
;REMARKS
;Like <help>FileExists</help>, but supports non-file objects such as virtual folders and Control Panel items.
;Uses <help>PidlFromStr</help>.
ITEMIDLIST* p=PidlFromStr(path)
if(p=0) ret
CoTaskMemFree p
ret 1Maybe not the best way. Little tested.
