Jump to content

ShellFolder object filter

Recommended Posts

what can be used to verify the true location of a targeted folder

for 1 i got the downloads folder targeted to D:\down1 when I browse with explorer in  D:\ It  is seen as  D:\Downloads with its special folder icon

In this doc I see only the SHCONTF_INIT_ON_FIRST_NEXT which won't do anything special or expand to D:\down1

what can fix getting correct true path for targeted folders using object filters or something to jump it

currently it lists as  D:\Downloads just like  explorer does it


Link to post
Share on other sites

Maybe this is what you are after :

Global $oShellApplication = ObjCreate("Shell.Application")
Local $oShellFolder = $oShellApplication.NameSpace("C:\Users\" & @UserName)
Local $oShellFolderItems = $oShellFolder.Items()
$oShellFolderItems.Filter(0x20, "*")
For $oShellFolderItem In $oShellFolderItems
  ConsoleWrite("Name : " & $oShellFolderItem.name & " / Real path : " & $oShellFolderItem.path & @CRLF)


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...