Tuesday, April 29, 2008

Create Explorer Shortcuts

Change the look of Windows Explorer using a set of command line switches. To start Explorer with the focus on a particular folder or open a window view with a specific file or program selected, checkout http://support.microsoft.com/kb/307856/en-us

Examples:
The following examples describe the use of Windows Explorer switches.
Explorer /n
This command opens an Explorer window using the default setting. This is usually the root of the drive on which Windows is installed.
Explorer /e
This command starts Windows Explorer using the default view.
Explorer /e,C:\Windows
This command starts Windows Explorer using the default view, with the focus on C:\Windows.
Explorer /root, C:\Windows\Cursors
This command starts Windows Explorer at the C:\Windows\Cursors folder. This example uses C:\Windows\Cursors as the "root" directory for Windows Explorer.

NOTE: Note the comma after the "/root" switch in the command.
Explorer /select, C:\Windows\Cursors\banana.ani
This command starts Windows Explorer with the "C:\Windows\Cursors\banana.ani" file selected.

NOTE: Note the comma after the "/select" switch in the command.
The Windows Explorer switches can be combined in a single command. The following example shows the combination of the Windows Explorer command-line switches.
Explorer /root, \\server\share, select, Program.exe
This command starts Windows Explorer using the remote share as its "root" folder, along with the Program.exe file selected.

No comments: