Вы находитесь на странице: 1из 2

April Tutor

Controlling Internet Explorer ●

CONTROL
YOUR EXPLORER
Many users of Windows 95, 98 or even NT 4.0 often wish that they could have greater control over
Windows Explorer—not realising that they can, and easily to boot. In this guide we show you how,
by means of simple switches, you can launch multiple explorers, specify the drive or folder to be
explored, specify the route of explorer—or all of these things simultaneously.

hether you’re running Microsoft or even in a batch file. This article will ex- In this open view, each file or folder is rep-

W Windows 95, Windows 98 or Win-


dows NT 4.0, you access the files
and folders on your system using
Windows Explorer. You launch it from the
plain how the command line switches work
and how some of them don’t always work.

WINDOWS EXPLORER’S COMMAND


resented by a large icon and a title. By de-
fault, Explorer “recycles” windows of this
type. That is, if the desired folder is present
in an existing open view window, Explor-
Start menu or from a shortcut on the desk- LINE SWITCHES er will activate that window rather than
top and it typically displays the contents of Figure 1 shows the command line switches opening a new one. If you right click a fold-
drive C:. Readers frequently ask how to for Windows Explorer. They control the er and choose Explore, you get a two pane
make it start with a different drive, or start type of display Explorer will use, the initial view (Figure 3) called the explore view.
with no drives open. If you know the com- folder and selection and the scope of the Ex- Here, the folder tree appears in the left hand
mand line switches for Windows Explorer, plorer window. Explorer can display the pane and the right hand pane lists details
you can make it start anywhere you want. contents of a drive or folder in two different about each file or folder, including the name,
You can use these switches in the command ways. If you right click a folder and choose size, type and last modified date. If neither
portion of a shortcut, at an MS-DOS prompt Open, you get a single pane view (Figure 2). the /n switch nor the /e switch is present,
Explorer uses the open view and recycles ex-
isting windows. The /n switch disables win-
dow recycling, forcing a new open view
window. The /e switch forces explore view;
when using this view, Explorer does not
recycle existing windows. If both switches
are present, /e is ignored.
The subobject and /select,subobject
switches control Explorer’s initial display.
When you add a folder name to the Ex-
plorer.exe command line to open that fold-
er, you’re using the subobject switch. If you
precede the full pathname of a file or fold-
er with /select, Explorer launches with the
specified file or folder highlighted and its
parent opened. The command explorer
/e,/select,c:\windows\system would open
the c:\windows folder and highlight the
system folder within it.

90 April 2000 www.DITnet .co.ae ■ www.pcmag -mideast.com


Tutor April

● Controlling Internet Explorer

FIGURE 2: The open view shows files and folders as large icons in a single FIGURE 3: The explore view shows the folder tree on the left, file and folder
pane display. details on the right.

The /root,object switch is powerful but drive D: and from which the user cannot or into one of its subfolders.
used less often. The root folder is the one navigate anywhere other than drive D:. To change a desktop shortcut’s com-
at the top of Explorer’s folder tree—the one To create a new shortcut using a particu- mand line, right click the shortcut and
that has no parent (Desktop, by default). By lar command line, right click the desktop choose Properties. The Target field on the
using the /root switch, you can specify any and choose New | Shortcut from the pop- Shortcut tab of the resulting dialog is the
drive or folder as the root for Explorer’s dis- up menu. Enter the full command line in the command line you want (Figure 4). Enter
play. For example, you could create an Ex- Create Shortcut dialog. If you have just tried your new command line. If the shortcut
plorer window that displays only drive C:, the shortcut at an MS-DOSprompt, you can you want to change is in the Start menu,
with no direct access to virtual folders like copy it from the prompt and paste it into the right click on the Start button and choose
Printers and Control Panel. dialog. Click Next and give the shortcut a Explore from the pop-up menu. Now nav-
name such as Explorer rooted on D. Now igate to the menu folder that holds the
PUTTING THE SWITCHES TO WORK click Finish; you’ll find the new shortcut on shortcut you want and modify it as de-
Here’s a quick trick to get you started. Open your desktop. To move it to your Start menu, scribed here.
an MS-DOS prompt, navigate to any folder simply drag it onto the Start button. This puts
that interests you and enter the command the menu item in the main body of the Start WHEN THEY DON’T WORK
explorer /e,. (That’s explorer, space, slash, menu, above the Programs menu. To move In some configurations, the /select,sub-
e, comma, period.) The single period rep- the item into the Programs menu, right click object switch seems to fail. The subob-
resents the current folder, so you get a two the Start button and choose Explore. Win- ject’s parent folder is opened in the left
pane Explorer window showing that fold- dows Explorer will display the shortcuts pane and highlighted in the folder tree, but
er. The command prompt is the best place and folders that define the Start menu; just nothing is visibly highlighted in the list of
to experiment with Explorer’s command drag the shortcut into the Programs folder files and folders. If you press Tab to move
line switches. When you work out a com- the focus to the detail list, however, you’ll
bination you like, you can create a shortcut see that the subobject is indeed selected.
using that exact command, or you can insert Microsoft’s Knowledge Base notes sev-
it into an existing shortcut. Here are sever- eral occasions where switches truly don’t
al switch combinations to try: work. According to article Q208114, “Win-
Explorer /e,/select,c:\ dows Explorer /N Switch Does Not Open
This opens a two pane Explorer view with a New Window” (http://support.microsoft.
none of the drives expanded. This is handy com/support/kb/articles/Q208/1/14.asp),
if you have multiple drives and use them all the command Explorer /n fails to disable
frequently. window recycling under Windows 98 and
Explorer /e,d:\ Windows 98 SE. Microsoft recommends
This opens a two pane Explorer window that using the /e swi tch inst ead . Art ic le
initially displays the contents of drive D:. Q237494, “The Explorer Command Does
Explorer /e,/root,d:\data Not Select the Correct File” (http://sup-
This switch combination opens a two pane port.microsoft.com/support/kb/articles/
window that initially displays the contents Q237/4/94.asp), states that under Win-
of the data folder on drive D: and from dows 98 SE, the /select switch without /n
which the user cannot navigate anywhere or /e may not select the correct file if the
other than in or below that folder. folder that contains it is already open. No
Explorer /e,/root,d:\,d:\data work-around is offered. These glitches are
FIGURE 4: The Target field holds the command line
This opens a two pane window that initial- executed by a shortcut.
minor, though, and don’t affect all sys-
ly displays the contents of the data folder on tems.

www.DITnet .co.ae ■ www.pcmag -mideast.com April 2000 91

Вам также может понравиться