When running and opening Windows Explorer, Windows Explorer will automatically display and show the content of a folder, by default is typically My Documents in Windows XP and Windows Server, Documents in Windows Vista and Libraries in Windows 7. User can easily change the default folder that Windows Explorer goes to upon running, by knowing the correct CLSID of the folder or special object.

Windows Explorer, or rather Explorer.exe or only Explorer, is the Windows Shell program which accepts command-line parameters or switches to pass to it in order to assert certain result of execution. As such, Windows Vista, Windows 7, Windows XP, Windows NT 4, Windows Server 2000, Windows Server 2003 and Windows 2008 users can use the command-link switch to start Windows Explorer which shows a different object or folder, such as Computer, Documents, Control Panel, and etc.

Note that some of these special system folders and objects are already available in Start Menu, which is one of the graphic user interface (GUI) parts of the Explorer. For example, in Windows Vista, user can direct access to user folder, Computer, Documents, Pictures, Music, Control Panel and etc right from the Start Menu. The following commands which call specific CLSID namespace of the object or folder is used to change the behavior of Windows Explorer upon running, and can be set in the properties of Windows Explorer shortcut or issue the command directly in Command Prompt.

My Computer
%SystemRoot%\explorer.exe /E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

My Documents
%SystemRoot%\explorer.exe /N,::{450D8FBA-AD25-11D0-98A8-0800361B1103}

Recycle Bin
%SystemRoot%\explorer.exe /N,::{645FF040-5081-101B-9F08-00AA002F954E}

Network Neighborhood
%SystemRoot%\explorer.exe /N,::{208D2C60-3AEA-1069-A2D7-08002B30309D}

Default Web Browser or Navigator (IE, Firefox, Safari, Google Chrome)
%SystemRoot%\explorer.exe /N,::{871C5380-42A0-1069-A2EA-08002B30309D}

Computer Search Results Folder
%SystemRoot%\explorer.exe /N,::{1F4DE370-D627-11D1-BA4F-00A0C91EEDBA}

Network Search Results Folder
%SystemRoot%\explorer.exe /N,::{E17D4FC0-5564-11D1-83F2-00A0C90DC849}

Web Folders
%SystemRoot%\explorer.exe /N,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{BDEADF00-C265-11D0-BCED-00A0C90AB50F}

Control Panel
%SystemRoot%\explorer.exe /N,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}

Printers and Faxes
%SystemRoot%\explorer.exe /N,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{2227A280-3AEA-1069-A2DE-08002B30309D}

Scanners and Cameras
%SystemRoot%\explorer.exe /N,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{E211B736-43FD-11D1-9EFB-0000F8757FCD}

Fonts
%SystemRoot%\explorer.exe /N,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{D20EA4E1-3957-11d2-A40B-0C5020524152}

Network Connections or My Network Place
%SystemRoot%\explorer.exe /N,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}

Administrative Tools
%SystemRoot%\explorer.exe /N,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{D20EA4E1-3957-11d2-A40B-0C5020524153}

Tasks Scheduler
%SystemRoot%\explorer.exe /N,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}

It’s also possible to directly specify the folder or directory for Windows Explorer to show and display when ran, using the same trick to change and set Windows Explorer default folder.

Explorer.exe Command Line Syntax

%SystemRoot%\explorer.exe [/n][/e][,/root],X,[[/Select],Y]

X specifies the object, and optionally with sub-object Y. /e switch showes the left Windows Explorer tree view navigation pane together with the right pane in list view, while /n hides the left navigation pane. When the /root parameter is present, Explorer.eee will explore the root object (X) and objects belonging to X. On the other hand, when the /root switch is not present, Explorer.exe explores the object X, its children, and other Explorer objects as well. /Select switch puts the focus on a file or folder.

For example:

%SystemRoot%\explorer.exe /N,%WinDir%\System32,/Select,%WinDir%\System32\Ping.exe

Command aboves will explore the \Windows\System32 folder and put the focus on the ping.exe program.

Tip: Normally, there is no need to specify full path to explorer.exe, which is stored in the Windows folder, obtainable through the environment variable WinDir, as the path already been defined in PATH environment variable, and will be search through accordingly. As such, Explorer will suffice to run the Windows Explorer shell.