rexx Posted March 27, 2010 Posted March 27, 2010 Hi, Can I get the CLSIDs of special folders (Computer, Control Panel...etc.) from FileSelectFolder()? In the doc it's possible to set root of FileSelectFolder() by CLSIDs, but when I select a special folder, I'll get name of it instead of CLSID. Is it possible?
Andreik Posted March 27, 2010 Posted March 27, 2010 (edited) You mean this? $MyDocsFolder = "::{450D8FBA-AD25-11D0-98A8-0800361B1103}" FileSelectFolder("Select",$MyDocsFolder) Edited March 27, 2010 by Andreik
rexx Posted March 28, 2010 Author Posted March 28, 2010 No, I mean $var = FileSelectFolder("Select","") and selecting a special folder, $var gets its name (e.g. My Document), instead of its CLSID. My question is how to get the CLSID of the selected special folder.
Yashied Posted March 28, 2010 Posted March 28, 2010 http://www.autoitscript.com/autoit3/docs/appendix/clsid.htm My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
rexx Posted March 28, 2010 Author Posted March 28, 2010 Thanks. But there are some special folders not in the table. For example, "Control Panel" in Windows 7 is "::{26EE0668-A00A-44D7-9371-BEB064C98683}" It's not in the appendix. Can I get it from the system?
martin Posted March 28, 2010 Posted March 28, 2010 Thanks.But there are some special folders not in the table.For example, "Control Panel" in Windows 7 is "::{26EE0668-A00A-44D7-9371-BEB064C98683}"It's not in the appendix.Can I get it from the system?Maybe this could be helpful. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
rexx Posted April 4, 2010 Author Posted April 4, 2010 Answering myself: Use COM Local $oShell = ObjCreate("Shell.Application") Local $oFolder = $oShell.BrowseForFolder(0, "Select Folder", 0) if IsObj($oFolder) then Local $sName = $oFolder.Self.Name Local $sPath = $oFolder.Self.Path MsgBox(0, "Select Folder", "Name: " & $sName & @CRLF & "Path: " & $sPath) endif
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