TooManySecrets Posted December 29, 2008 Posted December 29, 2008 Is there any way to see the full path of all the directories open in windows explorer?
Harlequin Posted December 30, 2008 Posted December 30, 2008 Is there any way to see the full path of all the directories open in windows explorer?What do you mean by "Open Directories", Windows that are open, or Folders that have files in use by "explorer.exe"? But when a long train of abuses and usurpations, pursuing invariably the same Object evinces a design to reduce them under absolute Despotism, it is their right, it is their duty, to throw off such Government, and to provide new Guards for their future security. - U.S. Declaration of Independence
TooManySecrets Posted December 30, 2008 Author Posted December 30, 2008 What do you mean by "Open Directories", Windows that are open, or Folders that have files in use by "explorer.exe"?windows that are open.
Debit Posted December 30, 2008 Posted December 30, 2008 Is there any way to see the full path of all the directories open in windows explorer?Not exactly sure what you mean.Try the Autoit Window Information to see the directory of a file.
TooManySecrets Posted December 30, 2008 Author Posted December 30, 2008 Not exactly sure what you mean.Try the Autoit Window Information to see the directory of a file.I have these folders openD:\Documents and Settings\Maverick\My Documents\MamboV4.6.2D:\Documents and Settings\Maverick\My Documents\demoandD:\Documents and Settings\Maverick\My Documents\BluetoothHow could i tell in autoit which directories are open(so like if i open a new dir it would also show in au3) and their win handles?can i do this with some sort of com object?
Nahuel Posted December 30, 2008 Posted December 30, 2008 you mean you want to know what directories are open with windows explorer? Be clearer when posting a question. This works partially, since it won't show it if the option "show full path in address bar" isn't enabled or you are in a special folder, such as My Documents. #include <array.au3> $ExWin = "[CLASS:ExploreWClass]" $AddBar = "[CLASS:Edit; INSTANCE:1]" $Explorers = WinList($ExWin) Dim $DirsOp[$Explorers[0][0]] For $i=1 To $Explorers[0][0] $DirsOp[$i-1] = ControlGetText($Explorers[$i][1],"",$AddBar) Next _ArrayDisplay($DirsOp)
TooManySecrets Posted December 30, 2008 Author Posted December 30, 2008 you mean you want to know what directories are open with windows explorer? Be clearer when posting a question. This works partially, since it won't show it if the option "show full path in address bar" isn't enabled or you are in a special folder, such as My Documents. #include <array.au3> $ExWin = "[CLASS:ExploreWClass]" $AddBar = "[CLASS:Edit; INSTANCE:1]" $Explorers = WinList($ExWin) Dim $DirsOp[$Explorers[0][0]] For $i=1 To $Explorers[0][0] $DirsOp[$i-1] = ControlGetText($Explorers[$i][1],"",$AddBar) Next _ArrayDisplay($DirsOp)I need something like that but here are my limitations the window name only has the folder name(Eg. Bluetooth) no address bar.
youknowwho4eva Posted December 30, 2008 Posted December 30, 2008 couldn't you possibly pull the location from the properties of an item in the window? that would solve the problems stated by Nahuel. Giggity
TooManySecrets Posted December 30, 2008 Author Posted December 30, 2008 couldn't you possibly pull the location from the properties of an item in the window? that would solve the problems stated by Nahuel.and how would I do this?I'm confuzzled
youknowwho4eva Posted December 30, 2008 Posted December 30, 2008 Idono, just sounded like a good idea Giggity
azure Posted December 30, 2008 Posted December 30, 2008 (edited) #include <array.au3> $ExWin = "[REGEXPCLASS:(Cabinet|Explore)WClass]" $AddBar = "[CLASS:Edit; INSTANCE:1]" $Explorers = WinList($ExWin) Dim $DirsOp[$Explorers[0][0]] For $i=1 To $Explorers[0][0] $DirsOp[$i-1] = ControlGetText($Explorers[$i][1],"",$AddBar) Next _ArrayDisplay($DirsOp) This works better.. includes both explorer windows and "my computer" windows. Basically gets all the windows you have open that are either, then grabs what text is in the EDIT1 class (which is the address bar). So it shouldn't matter what's in the window title. Thank Nahuel for the code. EDIT: HAHAHA.. Nevermind.. I see that you have no address bar and the window title just shows the folder name without the path. Doh! Edited December 30, 2008 by azure
TurionAltec Posted December 30, 2008 Posted December 30, 2008 (edited) You could change it to show the full path in the titlebar. Tools->Folder Options->View->display the full path in the title bar. Another option playing around with AutoIT Window info, is even if you don't have display full path, it will still be available as hidden text. Playing around more, the Edit1 control can still be addressed and read, even if hidden On a folder c:\Downloads, with the address bar hidden, and title bar not showing full path, AutoItSetOption("WinDetectHiddenText", 1) MsgBox(0,ControlGetText("[Title:Downloads; Class:ExploreWClass]","","Edit1"),WinGetText("[Title:Downloads; Class:ExploreWClass]")) Returns: --------------------------- C:\Downloads --------------------------- C:\Downloads C:\Downloads 15 objects (Disk free space: 19.9 GB) FolderView --------------------------- OK --------------------------- Edited December 30, 2008 by TurionAltec
TooManySecrets Posted December 30, 2008 Author Posted December 30, 2008 (edited) You could change it to show the full path in the titlebar. Tools->Folder Options->View->display the full path in the title bar. Another option playing around with AutoIT Window info, is even if you don't have display full path, it will still be available as hidden text. Playing around more, the Edit1 control can still be addressed and read, even if hidden On a folder c:\Downloads, with the address bar hidden, and title bar not showing full path, AutoItSetOption("WinDetectHiddenText", 1) MsgBox(0,ControlGetText("[Title:Downloads; Class:ExploreWClass]","","Edit1"),WinGetText("[Title:Downloads; Class:ExploreWClass]")) Returns: --------------------------- C:\Downloads --------------------------- C:\Downloads C:\Downloads 15 objects (Disk free space: 19.9 GB) FolderView --------------------------- OK ---------------------------address bar cant be read is control isnt there. hide your address bar close that folder open it again theres no edit box you get a whitespace edit: and I cant change any settings on that user's machine Edited December 30, 2008 by TooManySecrets
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