Deye Posted January 24, 2020 Share Posted January 24, 2020 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 Thanks Link to comment Share on other sites More sharing options...
Subz Posted January 24, 2020 Share Posted January 24, 2020 Maybe? #include <WinAPIShellEx.au3> _WinAPI_ShellGetKnownFolderPath($FOLDERID_Downloads) Link to comment Share on other sites More sharing options...
Nine Posted January 24, 2020 Share Posted January 24, 2020 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) Next Deye 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Deye Posted January 24, 2020 Author Share Posted January 24, 2020 @Nine that should work will see how it goes @splitting the name() back from the path() Thanks Link to comment Share on other sites More sharing options...
Subz Posted January 25, 2020 Share Posted January 25, 2020 Or $objShell = ObjCreate("Shell.Application") $objFolder = $objShell.Namespace('shell:Downloads').Self.Path ConsoleWrite($objFolder & @CRLF) Deye 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now