Explorer unknown command line options
Some of the (known) Explorer command line options are mentioned below.
There is no known documentation on Explorer command line parameters from Microsoft, however the following is roughly accurate: (Note that the commas are required between switches on the Explorer.exe command line.
Explorer [/n] [/e] [,/root,object][[,/select],subobject]
where …
Parameter:
* /n
Always opens a new window, even if the selected folder is already open.
* /e
Opens an expanded Explorer in the current folder. Normally Explorer starts in the root of the startup-drive.
* /root,object
Defines an object from the named space to be used for the root of the selected folder tree. Default is “Desktop”.
* /select
The specified object will be selected (the folder ‘above’ it will be opened).
* subobject
Defines the folder which gets the focus, if “/select” is not set. Default is the root drive, C:\.
Note: Using “EXPLORER /SELECT,A:” will open the My Computer icon and have the floppy drive selected.
The following code will open Explorer with the My Computer icon highlighted (the same as hitting the Windows key+E. If the Z drive doesn’t exist on your system, no drive is selected:
Run(“explorer.exe”,”/e,/select,z:\”)
Few things in Windows are more irritating than the way that Explorer always opens C:\ when it’s first opened. If you have an entry in your Start Menu to run Explorer, you can change it to “Explore” at the folder of your choice:
1. Open Explorer, and go to your Start Menu folder.
2. Find the shortcut for Explorer, right click on it, and select Properties.
3. Click on the Shortcut tab, and change the Target so it reads: c:\windows\EXPLORER.EXE /n, /e, d:\myfolder (where c:\windows is your Windows directory, and d:\myfolder is the directory in which you want Explorer to start.)
Tip: To have Explorer start with My Computer, so no branches are initially expanded, use the following command line options: /n, /e, /select, c:\
All this is useful if you dont want your user to mess up with other drives you dont want them to see.


Trofneer said:
I should email my pal about this.