From: "Greg" Subject: Re: Open Explorer to "My Computer" References: <01bef328$2e1f57c0$3400a8c0@greg> Message-ID: <01bef3ca$f52a8360$3400a8c0@greg> X-Newsreader: Microsoft Internet News 4.70.1161 Newsgroups: microsoft.public.win95.general.discussion Date: Tue, 31 Aug 1999 09:08:18 -0700 NNTP-Posting-Host: 207.14.236.170 Path: cppssbbsa01.microsoft.com!cppssbbsa04 Lines: 103 Xref: cppssbbsa01.microsoft.com microsoft.public.win95.general.discussion:121107 Thanks. Actually, I finally found the full explorer command line options and CLSID numbers on the web shortly after posting this question. for the benefit of anyone else, here's some (lengthy) further info: Explorer Command-Line Options ============================= Explorer [/n][/e][[,/root],][[,/select],] or Explorer [/n][/e][[,/root],/idlist,,] /e Use Explorer view (scope and results pane view). The default is Open view (results in pane view only). /n forces a new explorer window to be opened. /root Specify the object in the "normal" name space that is used as the root (top level) of this Explorer/Folder (i.e., local path or UNC name). The default is the Desktop. [more below] /select The parent folder opens and the specified object is selected. Specify the folder unless /select is used. The default is the root. Examples: --------- Explorer /e, /root, \\Reports opens an Explorer window at \\Reports. Explorer /select, C:\Windows\Calc.exe opens a folder at C:\Windows (or activates one that is currently open) and selects Calc.exe. Explorer /e,/idlist,:-2109146316, opens to whatever folder is indicated by the ILGlobalClone() assigned idlist located at 0x8248FB34 MORE: can be a normal UNC style file or device name, or can specify a "path" of class id's. Like so: ::{clsid}[\::{clsid}] Some clsid's for common objects: Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} Printers.{2227A280-3AEA-1069-A2DE-08002B30309D} Dial-Up Networking.{992CFFA0-F557-101A-88EC-00DD010CCC48} Recycled.{645FF040-5081-101B-9F08-00AA002F954E} Directory.{F3364BA0-65B9-11CE-A9BA-00AA004AE837} My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D} Network Neighborhood.{208D2C60-3AEA-1069-A2D7-08002B30309D} Syntax: Explorer.exe /e,/root,::{CLSID of item} for items under My Computer: Explorer.exe /e,/root,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{CLSID of item} Diffrent valid forms of specifying an object: explorer.exe C:\ specifies an item on the physical filesystem (including mapped net & cdrom drives) explorer.exe \\netpc\ specifies a network resource by UNC explorer.exe ::{clsid}[\::{clsid}] specifies an namespce item rooted off the desktop by unique clsid. explorer.exe /root,{clsid},D:\Path name The IShellFolder identified by clsid will be launched, and bound to the given path name. explorer.exe /idlist,:lpidl,D:\Path name specifies a namespace item rooted off the desktop by global mem lpidl specified as a signed integer. The last form (/idlist) is used internally by explorer to open subfolders. "lpidl" looks like this: ":-2109146316" (which becomes 0x8248FB34). "D:\Path name" is only passed in if the object is a file system object. Otherwise its left blank. * NOTE: You can initialize an arbitarry IShellFolder by CLSID as rooted without giving the full path to the object by giving explorer the real path to any other item. explorer uses this syntax to launch mail & news. eg: "explorer.exe /root,::{clsid},C:\windows\Internet Mail.{clsid}" Walker Goodson wrote in article ... > Greg, > > Right click on the shortcut to Explorer and select Properties. Copy the > following line into the Target area... > > C:\WINDOWS\EXPLORER.EXE /e,/n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D} > > Click Apply and your done. > > > Greg wrote in message <01bef328$2e1f57c0$3400a8c0@greg>... > >does anyone know how (if possible) to open Explorer from the command line > >with "My Computer" selected in the left pane? I know how to do it with a > >disk folder, like > > > >Explorer.exe /e,C:\Folder > > > >but I haven't been able to find how to specify "My Computer" as the target. > > > >Any help appreciated. > > > > > >Thanks, > > > >Greg S. > > > > >