Windows Explorer command line switches

explorer.exe [/n][,/e][,/root,object][[,/select],subobject]

  • /n - always open a new window (even if the specified folder is already open)
  • /e - uses windows explorer view(Tree view)
  • /root,object - Specify the object in the normal namespace that will be used as the root of this Windows Explorer Folder
  • subobject - Specify the folder to receive the initial focus unless /select is used
  • /select - Specifies that the parent folder is opened and the specified object(program) is selected.

Remember the “,” between command line switches.

Examples of different commands:

  • Opens My Computer with tree-view (With Drive-Letter A: selected):

    Explorer.exe /e,/select,A:

  • Opens C-Drive with tree-view:

    Explorer.exe /e,/root,c:\

  • Opens Desktop with tree-view:

    Explorer.exe /e,/select,

  • Opens special folder:

    explorer.exe /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

More Info MS KB130510
More Info MS KB307856
More Info MS KB314853