Windows Explorer command line switches

1 January 2000 by Snakefoot | Comment » | Trackback Off

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 KB Q130510
More Info MS KB Q307856
More Info MS KB Q314853

Updated: 23 September 2007

Comments:

Comment by Jonathan - 16 June 2008 @ 2:27 Reply

Thanks, very helpful info..

Leave a comment


NB! Use the Forum for computer help and off-topic questions.

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