Command Line Switches to Display Special Objects or Folders When Opening Windows Explorer

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.


4 Responses to “Command Line Switches to Display Special Objects or Folders When Opening Windows Explorer”

  1. chris
    November 5th, 2009 07:51
    4

    Hi.
    This doesnt work in Vista… If anyone knows a way to get it working in Vista let me know. 2K, XP, and W7 work good.

  2. JediNite
    October 24th, 2009 08:20
    3

    Hi,

    Here is the Command Line Switch for the “Games” folder if anyone is interested… I’ve tested this in windows 7 and it works :)

    %SystemRoot%\explorer.exe /E,::{ED228FDF-9EA8-4870-83b1-96b02CFE0D52}

    Cheers,

    JediNite

  3. Ed
    March 25th, 2009 16:48
    2

    Great resource – thanks a million.

    What also works is chaining the special names (like “My Documents”) with normal folders.

    I use this now (via a batch file + shortcut) to open Explorer to the “target-folder” in “My Documents”:

    %SystemRoot%\explorer.exe /E,::{450D8FBA-AD25-11D0-98A8-0800361B1103}\target-folder

    (This also shows the left folder pane view)

    Just replace “target-folder” with whatever you want!

  4. Trick to Open Computer or Documents as Default Instead of Libraries Folder with Windows Explorer on Windows 7 » My Digital Life
    February 7th, 2009 03:46
    1

    [...] Now, Windows 7 Explorer will open Documents or Computer directly, skipping and bypassing Libraries, depends on what you set or configure on initial run. There are more special objects and folders that Windows Explorer can open directly to. [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

windows 7 explorer command line switches - {20D04FE0-3AEA-1069-A2D8-08002B30309D} - windows 7 explorer command line options - 20D04FE0-3AEA-1069-A2D8-08002B30309D - windows 7 explorer switches - ::{20d04fe0-3aea-1069-a2d8-08002b30309d} - ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\ - windows 7 explorer.exe switches - windows 7 explorer command line - windows explorer command line options - explorer.exe command line windows 7 - explorer.exe command line switches - explorer.exe switches - %SystemRoot%\explorer.exe /root,::{20D04FE0-3AEA-1069-A2D8-08002B30309D} - windows 7 explorer.exe command line - all - windows explorer command line - explorer.exe switches windows 7 - explorer.exe switches vista - "windows 7" explorer "command line switches" - explorer.exe command line - explorer.exe shell:::{21ec2020-3aea-1069-a2dd-08002b30309d} - explorer command line switches - Windows Explorer switches - windows 7 explorer.exe parameters - command line switches - explorer.exe command line parameters - "Windows 7" explorer switches - /root,::{20D04FE0-3AEA-1069-A2D8-08002B30309D} - explorer.exe command line options - "windows 7" explorer command line - explorer switches windows 7 - windows 7 explorer.exe options - windows 7 Command line switches explorer - Windows 7 explorer.exe command line options - %windir%\explorer.exe /root,::{20D04FE0-3AEA-1069-A2D8-08002B30309D} - windows explorer command line switches - "windows 7" explorer command line switches - %windir%\explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D} - explorer.exe options windows 7 - explorer.exe parameters - windows explorer switches windows 7 - command line switches explorer windows 7 - explorer exe command line switches - windows explorer parameters - windows 7 windows explorer switches - windows explorer command line arguments - windows 7.0 explorer.exe parameters - explorer.exe in windows 7 - explorer.exe switches "windows 7" -