Microsoft KB Archive/152457

= Windows Explorer Command-Line Options =

Article ID: 152457

Article Last Modified on 2/21/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows 2000 Datacenter Server
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Server 4.0 Standard Edition

-



This article was previously published under Q152457





SUMMARY
This article lists the command-line switches that you can use with Windows Explorer (Explorer.exe).



MORE INFORMATION
Explorer [/n] [/e] [/root, ] [/select, ]

/n               Opens a new single-pane window for the default selection. This is usually the root of the drive Windows is installed on. If the window is already open, a                 duplicate opens.

/e               Opens Windows Explorer in its default view.

/root,   Opens a window view of the specified object.

/select, Opens a window view with the specified folder, file or                  application selected.

Examples:

Example 1:    Explorer /select,C:\TestDir\TestApp.exe

Opens a window view with TestApp selected.

Example 2: Explorer /e,/root,C:\TestDir\TestApp.exe

This opens Explorer with C: expanded and TestApp selected.

Example 3: Explorer /root,\\TestSvr\TestShare

Opens a window view of the specified share.

Example 4: Explorer /root,\\TestSvr\TestShare,select,TestApp.exe

Opens a window view of the specified share with TestApp selected.

Additional query words: prodnt shell nthowto

Keywords: KB152457

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.