JSI Tip 0057 - Explorer shortcut and command line switches.

Jerold Schulman

January 28, 1997

1 Min Read
ITPro Today logo in a gray background | ITPro Today

You can execute explorer from the command line or from a shortcut and use switches to control the view. The syntax is: EXPLORER.EXE [/n] [/e] [,/root,{object}] [[,/select],{sub object}]

/n.................................Opens a new "My Computer" view of the object, even if already open.

/e.................................Opens an "Explorer" view of the object.

/root,{object}................The specified root for the display. Explorer.exe /e,/root,D: will open an "Explorer" view of the D: drive.

/select,{sub object}.......The specified folder or file receives focus. Explorer.exe /select,C:WinNTSystem32Regedt32.exe will open a window view of C:WinNTSystem32 and the NT Registry Editor will receive focus. To do the same with an "Explorer" view, Explorer.exe /e,/select,C:WinNTSystem32Regedt32.exe


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like