|
|
|
|
Windows 95 in a NutshellA Desktop Quick ReferenceBy Tim O'Reilly & Troy Mott1st Edition June 1998 1-56592-316-2, Order Number: 3162 528 pages, $24.95 |
Sample Chapter 3:
The Windows 95 User Interface
This chapter provides an alphabetical reference to many of the major user interface elements in the Windows 95 Desktop.
The Control Panel and Remote Network Access (used by facilities such as the Microsoft Network, Internet Explorer, and Dial-Up Networking) are covered in separate chapters, since they are complex environments in their own right. Many of the utilities and accessories on the Start menu are covered in Chapter 5, Commands and Applications, since they are also accessible from the command line.
The alphabetical reference entries are as follows:
Briefcase
Clipboard
Context Menus
Desktop
Dial-Up Networking
The Explorer
File Types
Find Files and Folders
Icons
Inbox
Internet
Login
My Computer
Network Neighborhood
Office Shortcut Bar
Printers
Properties
Recycle Bin
Run
Send To
Shortcuts
Shut Down
Start Menu
Startup Folder
System Tray
Taskbar
Note that because of the variety of Windows 95 installation options, not every system will have each of these features on its Desktop. Note also that while most of these items are visible on the Desktop, some are contained within folders or menus. In addition, a few (context menus, File Types, and Properties) refer to context-specific menus or dialogs that can be popped up from many different objects, and will be different for each object.
Each entry contains a brief description, a shorthand "path" showing how to get to the item, a figure (if some aspect of the user interface is sufficiently complex to require it), and a set of notes focusing on features that are buried in the user interface, not obvious, or undocumented.
Almost all of these user-interface elements are provided by the Windows 95 Explorer. If a user interface element has a corresponding file or folder (as well as being an element of the Explorer), it is shown on the title line for the entry:
Entry Name\ pathname
Brief description.
The path notation we use to show how to reach each user interface element is described in the Preface. If there is more than one way to reach a given user interface element, multiple paths are shown. For example:
My Computer
Printers
Start
Settings
Printers
Briefcase\Windows\Desktop\My Briefcase
Synchronize files between two computers.
Desktop
My Briefcase
Desktop
context menu
New
Briefcase
Description
Before going on a trip, you might want to copy a set of files on your Desktop to the Briefcase, then move the Briefcase to the laptop (or to a floppy disk). You can edit either the original files or the ones in the Briefcase. Then, when you return, copy the Briefcase back to the original machine and use its Briefcase menu
Update to synchronize the Briefcase and original copies of the files. If the machines are networked, you can synchronize files without having to copy the Briefcase back and forth. Synchronization will work with UNC paths to networked files or folders.
To put a file in the Briefcase, you can drag its icon to the Briefcase folder, or can use the Send To menu, which lists My Briefcase as an option. See Figure 3-1.
Figure 3-1. My Briefcase
![]()
Notes
- You can initiate an update from either the Briefcase menu or the File menu. The Briefcase menu gives you an Update All option, and the File menu allows the update of only selected files (though you can of course Select All).
- When you update the contents of the Briefcase, Windows displays several details, including the modification date of each file, and the direction in which the Briefcase intends to make the update. You can right-click on the directional arrow to change the direction or skip the update.
- The Briefcase mechanism uses the date and time of update to determine which of the two copies of the file is the most up-to-date, so be sure that the clocks on both machines are synchronized.
- My Briefcase is automatically created on the Desktop if you choose Portable setup when installing Windows 95, or if you choose it as part of a Custom installation. To install it later, use:
Control Panel
Add/Remove Programs
Windows Setup
Accessories
Details
Briefcase
- Create a Briefcase on a floppy if you frequently work on the same set of files at work and at home. You can then synchronize (Briefcase
Update All) at the beginning and end of each day to make sure you have the latest copy on both machines.
- You can create multiple Briefcases by right-clicking on the Desktop and choosing New
Briefcase, or use the following command line:
rundll32 syncui.dll,Briefcase.Create
(Send To is probably the easiest way to populate a Briefcase, but the command line could be useful if, for instance, you wanted to create a batch file that created a new Briefcase and then copied the contents of the current folder to it.)
You will need multiple Briefcases if you are using floppy disks for the transport mechanism and you have more files than will fit on a single disk. By default, Send To will recognize only My Briefcase, but you can drag and drop to any Briefcase. (See Send To for a discussion of how to add additional items--such as other Briefcases--to the Send To menu.)
- Properties
Update Status for any file in the Briefcase will give details about which version is considered more up to date, and gives options for changing the order of update. (For example, if you'd made changes in the Briefcase, but wanted to revert to the original copy of the file, you could so choose. You can also unlink the Briefcase and original copy by selecting Split from original.)
- If you screw up and make changes to both copies of the file, the Briefcase will warn you of the fact. Some applications are smart enough to walk you through the process of merging the files, but for most, you'll have to look at both copies and make the changes manually.
ClipboardA shared, system-wide storage area for holding and moving data.
Edit
Cut (Ctrl-X)
Edit
Copy (Ctrl-C)
Edit
Paste (Ctrl-V)
Description
The Clipboard is an invisible storage area, unless you've installed the Clipboard or Clipbook viewer. Data can be cut or copied to the Clipboard, then pasted in a new location, in either the same application or a different application. You must first select the data to be cut or copied. Data in the Clipboard can be pasted again and again, until it is replaced by new data.
Notes
- The Clipboard holds only one item at a time. Cutting or copying something to the Clipboard replaces its previous contents.
- You can paste only data that an application is prepared to receive. For example, you cannot paste an image into an application (such as DOS) that recognizes only text. (DOS can't really even paste text, but Windows simulates it by typing out the contents of the Clipboard.) Note that applications like Photoshop have their own non-Windows clipboards, and export the data sometimes when you switch applications.
- The Clipboard and Clipbook programs display the otherwise-invisible Clipboard. In other words, these programs are Clipboard "viewers." The Clipboard itself is an area of memory. See clipbrd and clipbook in Chapter 5.
- In a DOS window, you must use the buttons on the taskbar to make selections, copy, and paste.
- Some older (Windows 3.0) applications instead recognize the keyboard accelerators
Ctrl-Insertfor copy andShift-Insertfor Paste.See Also
clipbrd and clipbook in Chapter 5
Context MenusRight-clicking on many windows, icons, or user interface items will pop up a menu with various special operations. The menu's contents will vary depending on which item you've right-clicked, so it is normally called the context menu.
To view the context menu for an object:
Right-click
Shift-F10 when the object is selected
Description
Figure 3-2 shows the context menu for a folder. Context menus for other types of objects are discussed in the entry for each object.
Figure 3-2. Context menu for a folder
![]()
Notes
- Context menus exist for all of the major interface elements--files, folders (including system folders like My Computer, Network Neighborhood, Recycle Bin, and My Briefcase), the Desktop, the Taskbar, the System Tray, and so on--but they often also exist for elements within an application window or dialog.
At the least, individual buttons or other user interface elements often have a context menu consisting of the single entry What's This?, which gives a short description of what that element is used for. However, in some cases, the context menu is more extensive. For example, right-clicking in the results window of a Find search yields a View menu that allows you to customize the way the results are displayed.
If you're ever stuck, try right-clicking on a user-interface element and see if anything helpful pops up.
- Right-clicking on the titlebar of a window gives you the context menu for the window. (This is typically the same system menu that you will get by clicking on the icon in the leftmost corner of the titlebar.) Right-clicking in the body of the window gives you the context menu for the application, or the selected element within the application, if one exists. Note that this is different from the context menu that you get by clicking on the program's icon when it is not running.
- The context menu for the Desktop includes a New entry, which allows you to create a new Folder, Shortcut, or empty file.
- The bold item (usually, but not always, at the top) is the default action, carried out when you double-click. View
Options
File Types
Edit lets you change the default action as well as letting you add new actions.
Desktop\Windows\Desktop
\Windows\Profiles\<username>\Desktop
The most visible element of the Explorer user interface. Supports icons, windows, and drag-and-drop functionality.
An overview of the Desktop is provided in Chapter 1, Using Windows 95. This section mainly consists of a few implementation notes and useful tips.
Notes
- The Desktop is a folder, and can contain files and other folders. When you put something on the Desktop, you are really putting it in the folder \Windows\Desktop (or \Windows\Profiles\<username>\Desktop if multiple user profiles are in use). Similarly, any changes you make to that folder--even from the DOS prompt--will result in immediate changes on the Desktop. Rename, copy, or delete files in \Windows\Desktop using the command line or the Explorer and the Desktop will change accordingly.
- The Desktop is created and maintained by the Explorer (explorer.exe). The Explorer creates the Desktop only when it is run during startup, using the shell= setting in the file \Windows\system.ini. Subsequent invocations of the Explorer present the normal paned view. If shell= is given some other command (e.g., command.com), the Desktop, the Start menu, and the Taskbar may not be shown.
- Some icons on the Desktop (such as My Computer, Recycle Bin, and Network Neighborhood) aren't files or folders, but system objects. They act like folders but have some special characteristics--including additional menus.
- Context menu
New allows you to create a new Folder, Shortcut, or empty file of various types.
- Desktop Properties (also on the context menu) is the same as Start
Settings
Control Panel
Display.
- Icons can be arranged on the Desktop by type (system facilities, folders, and files, in that order), alphabetically by name, by date (with the most recent first), and by size (with the smallest first). Select AutoArrange if you want the icons in neat rows; unselect it if you want to be able to drag them anywhere on the Desktop. When the Desktop gets full, autoarrange stops working.
- With Microsoft Internet Explorer 4 or Windows 98, you can choose that the "Active Desktop" be viewed as a Web page, thereby making it customizable with HTML, JavaScript, animated GIF files, and so on. See the forthcoming Windows 98 in a Nutshell.
Dial-Up NetworkingEstablish a network connection over a modem.
My Computer
Dial-Up Networking
connection
Launch any Internet-aware application (Internet Explorer, telnet, ftp, etc.)
Description
Dial-Up Networking provides a collection of facilities for connecting to remote computers over a phone line, most commonly using the Point to Point Protocol (PPP). Dial-Up Networking also supports other protocols, including the Serial Line Internet Protocol (SLIP), Novell NRN Network Connect, Windows for Workgroups, X.25, and ISDN. SLIP is available only with an add-on, unless you're using OSR2 or later.
Before you can use Dial-Up Networking, you must first define a new connection. This consists of:
- A location, which defines the characteristics of the place from which you will be dialing. This includes information such as whether you need to dial a prefix to get an outside line, whether you are using a calling card, whether you need to disable call waiting, and whether the location uses tone or pulse dialing.
- Information about the connection itself, such as the phone number to be dialed, the protocol to be used, the login script, and so on. The protocol can be changed only after the connection has been created, using the properties sheet. The script requires OSR2 or an add-in you can download from Microsoft.
- Dial-Up Networking configuration can be fairly straightforward, but it can also get extremely complex. For that reason, the details of how to set up connections are given in Chapter 7, Dial-Up Networking. The remainder of this entry gives a few tips for using existing connections.
Notes
- To start up an existing connection, simply start any Internet-aware application that requires a connection, such as Internet Explorer, Netscape Navigator, telnet, or ftp. The connection last used by that application will be started up again.
- To start up a connection explicitly, simply double-click on its icon (sometimes called a "connectoid"). A Connect To dialog will give you a chance to change some (but not all) of the dialing parameters before initiating the connection. (For example, you can type in a different phone number, but you can't cause the connection to remember that number.) You can change the username and password, select among available Locations, and create new locations. In OSR2, this box can be turned off.
- The Dial Properties button on the Connect To dialog allows you to define new locations, but not new phone numbers to be dialed. To change the phone number, you need to open the Properties of the connection itself.
- The name you give to the connection appears as a file in the Dial-Up Networking folder. If you will be using the connection often, you may want to make a shortcut and put it on the Desktop. Connections can be renamed just like files.
- Logging in to remote computers can be tricky, since you are establishing a dialog between two computers. If you are having trouble, it often helps to log in manually, so you can see exactly what is happening. To do this, you need to click connection
Properties
General
Configure
Options
Bring Up Terminal Window Before Dialing. See Chapter 7 for additional details.
- The Connections menu on the Dial-Up Networking folder has a settings item that pops up a property sheet with a number of useful overall options, including:
- Whether or not to show an icon on the Taskbar after you've connected (OSR2 only).
- Whether or not to put up the confirmation dialog before dialing (OSR2 only).
- Whether to redial a failed connection, how many times, and how often.
- Whether to prompt before auto-dialing whenever you start up a network application. This option is enabled only if you've checked "Connect to the Internet as needed" on Control Panel
Internet
Connection. Note that if autodialing is enabled, applications like Internet Explorer, telnet, and FTP will start up Dial-Up Networking even if you already are connected via a direct Internet connection. You'll have to click Cancel to continue, using the direct connection.
- The command line for launching an existing "connectoid" is:
rundll32 rnaui.dll,RnaDial connectoid-name
where connectoid-name is the name of the connectoid. This is useful if the Explorer is not your shell.
The Explorer\Windows\Explorer.exe
View all the folders and files on your computer.
Start
Run
![]()
explorerStart
Programs
Windows Explorer
Context menu
Explore
Shift-double-click on any folder
Most users think of the Desktop interface as "Windows 95" and the Explorer as an application within it, but in fact, the Explorer is the program that creates and maintains the Desktop and many of the other visible features of Windows 95. However, when you run the Explorer as a separate application, it provides a useful two-pane view of files and folders that allows you to navigate the file system easily. (See Figure 3-3.) It is that view of the Explorer that is discussed here.
Figure 3-3. The double-pane Explorer window
![]()
Unlike the Windows 3.1 interface, in which you end up with dozens of open windows if you want to navigate somewhere deep in the file system, the Explorer maintains a tree-structured view of the file system in the left pane and opens only a single target folder in the right pane. This behavior applies only to folders, however. If you double-click on a file or program icon in the right pane, a separate application window will open, just as it does on the Desktop.
It may help to think of the left pane as the "navigation pane"--actions here control what will be displayed on the right pane. The right, or display pane, shows the results. Think of this pane as equivalent to any other window, such as a folder open on the Desktop. (This will become very clear to you if you select an alternative view such as View
Large Icons. The right pane will then resemble a normal folder view.)
- Click on any folder in the left pane to show its contents in the pane on the right.
- A plus sign (+) by any folder indicates that it contains subfolders. Click on the plus sign (or double-click on the folder itself) to show the subfolders as part of the tree-structured view in the left pane. The plus sign will change to a minus sign. Click on the minus sign (or double click on the open folder) to collapse that branch of the filesystem tree.
- You can perform the same actions on folders or files shown in either the Explorer pane that you can perform on them in any open window:
- Double-click on any file or folder in the right pane to open it. A folder will open in the Explorer pane; a file will open its associated application.
- Drag a file or folder from the Explorer pane onto the Desktop or into any other folder.
- Pop up the context menu for any file or folder and use it to create Shortcuts, Send To, Rename, Delete, or any other operation that you can perform on files.
Everything that works on the Desktop works in the Explorer, because the Desktop is just part of the Explorer. Each additional instance of the Explorer that you start up is actually just a separate thread of execution in the same program that also creates and maintains the Desktop.
Quick Navigation Tips
Backspacewill take you back up one level in the folder hierarchy. When the focus is in the left pane, the left arrow will do the same, but will also close the open branch. The right arrow will expand branches (any folder with a + next to it); the up and down arrows will move through the expanded branches in a linear fashion, but will not expand any branch that is not already open. PressEnterto expand or open the currently selected folder.Notes
- The portion of the file system that is initially displayed in the Explorer depends on how you invoke the program.
Start
Programs
Windows Explorer
Starts at C:\
any folder
context menu
Explore
Starts at selected folder
Start
Run
![]()
explorerpathnameGive pathname as argument, or C:\ by default
- The Explorer has many command-line options. See explorer in Chapter 5 for details.
- The amount of free space left on your disk is shown in the Explorer status bar when you select a disk icon.
- If your prefer the Windows 3.1 File Manager, use Start
Run
![]()
winfile. You can start the Windows 3.1 Program Manager with StartRun
![]()
progman. Keep in mind that you can't view long filenames in winfile.
File TypesOpen a file of an unknown type, or associate file types with a different application.
any folder
View
Options
File Types
If you try to open a file of an unknown type (by double-clicking or using context menu
Open, or using the File
Open command from within an application), you will get a dialog that asks you to identify which program you want to use to open the file (see Figure 3-4).
Figure 3-4. The Open With dialog box
![]()
If you want to force a new association (for example, because you want .htm and .html files to be opened by Netscape rather than by Internet Explorer), or just want to open a file with another application than the one that opens it by default, select the file (click once), then hold the Shift key down and right-click on the file, choosing Open With from the context menu.
Or go to View
Options
File Types in any folder Explorer window. Scroll through the list of file types, then click Edit to change any particular association. You can also change associations for objects such as drive, folder, and unknown--see "Context Menus." earlier in this chapter. Click New to create a new file/program association. Figure 3-5 shows a sample Edit dialog box for the Text Document (.txt) file type.
Figure 3-5. The Edit dialog box
![]()
For an existing file type, you will typically see one or two actions, such as Open or Print. The one that is in bold type is the default action--the one that will be invoked when you double-click on a file of the specified type.
Other actions will be placed on the file's context menu. Note that you can have more than one open action (although only one can be the default). For example, a text file could have an Open with Notepad action and an Open with Word action or any other program that allows you to edit text files (such as the DOS edit command, or a third-party editor such as emacs or vi from the MKS Toolkit).
Click New or Edit to create a new action or edit an existing one. The resulting dialog lets you specify the command line to be used. For example, to print using Notepad, use the command
C:\Windows\notepad.exe/p. (Command-line options for all standard Windows 95 commands are given in Chapter 5. For third-party applications, these may be hard to find.)Not all programs give access to their internal functions via command line options, though. For example, look at the open action for the content type .gif image in Figure 3-6.
Figure 3-6. Dynamic Data Exchange in an open action dialog box
![]()
Sure enough, there's a command line. But "Use DDE" is also checked. DDE stands for Dynamic Data Exchange; it is an ostensibly defunct technology (supposedly replaced by OLE, COM, ActiveX, and who knows what else) that actually plays an important part in Windows 95. For example, both the Explorer and Netscape Navigator can be "driven" with DDE. While command lines specify options given to a program just before it starts, DDE commands can be sent to an already running program. If you're interested in one widely used DDE interface (it's supported by Microsoft as well as Netscape), see "Netscape's DDE Implementation" at either of the following locations:
http://developer.netscape.com/docs/manuals/communicator/DDE/abtdde.htm
http://www.spyglass.com/products/smosaic/sdi/sdi_spec.htmlSee also:
http://www.creativelement.com/software/delegate.html
Note that you can have more than one extension for a content type. For example, if you've got Netscape Navigator installed, the type Netscape Hypertext Document corresponds to the extensions .htm, .html, .xbm, and .shtml. Files with any of these extensions will be opened by Netscape Navigator. See Chapter 10 The Registry, for an explanation of this behavior.
Notes
- Clicking "Always use this program to open this file" on the Open With dialog box will create a permanent association between the file type (as defined by its extension), rather than performing one-time transient operations for this specific file.
- The list of file type-program associations is kept in the Registry at
HKEY_CLASSES_ROOT. See Chapter 10 for a detailed explanation.- Sometimes you want to get the Open With dialog for a file whose type is already registered, so that you can use a different application to open it. As noted previously, select the file, then Shift-right-click on it to get a context menu including Open With.
- Alternatively, you can create a batch file (and then put a shortcut to it on the Desktop, the Start menu, or the Send To folder) containing the following command line:
rundll32 shell32.dll,OpenAs_RunDLL %1
Find Files and FoldersQuickly locate any file on the system, using either the filename, the date and time the file was created or modified, text contained in the file, or some combination of these criteria. A list of files matching the criteria will appear in the lower window.
Start
Find
Files or Folders
Explorer
Tools
Find
Files or Folders
any folder
context menu
Find
F3 while focus is on the Desktop
Right-click in Explorer left pane
Search Criteria
Information entered on all three tabs works together to define the criteria for the search. For example, you can search for a file with a specific name, or leave the filename blank and search for all files created since a specific date, or construct a complex search using multiple criteria. Find remembers search criteria, so you can refine a search by defining additional criteria and repeating the search. See Figure 3-7.
Figure 3-7. The Find Files and Folders dialog box
![]()
Find
Name & Location
Named
Enter any part of the desired filename(s). Find does a substring search--unless you're used to wildcards, you don't have to use them. For example, the string "exec" would return autoexec.dos, autoexec.bat, and jobexec.dll. However, find does also recognize the standard file naming wildcards (
?and*). For more information on the rules of using these wildcards, see "Wildcards, Pipes, and Redirection" in Chapter 5. You can enter multiple filenames by separating them with a comma (e.g., *.txt, *.bat).Find also keeps a history of previous filename searches, which you can view by clicking on the down arrow to the right of the field. (This history is preserved even when you clear the previous search using New Search.)
Find
Name & Location
Look in
Can be given a drive (and optional folder) in which to make the search. You can specify multiple drives or folders by separating their names with a semicolon (and optional space). For example: C:\; D:\ will search both the C: and D: drives. By checking the "include subfolders" box, Windows will search all subdirectories within the main directory you are searching.
Find
Date Modified
Lets you specify a range of dates during which the desired files were last changed.
Find
Advanced
Of type
Lets you specify whether to search for files of only a given type. Obviously, you could do the same by specifying a given filename extension in Find
Name & Location
Named.
Find
Advanced
Containing text
Lets you enter a string of up to 128 characters to search for. Carriage returns are not allowed--they will start the search. $ matches the end of a line in text files, and can be used to "anchor" a search, to find text that ends a line. Find will locate ASCII strings in non-text (binary) files, but it will not locate Unicode (two-byte) strings. Cut and paste accelerators are supported.
Find
Advanced
Size is
Lets you specify a specific size for a file or a minimum (At least) or maximum (At most) size.
Find Dialog Menus
- File menu
Open Containing Folder: opens not the file that has been selected in the Find results window, but the folder that contains it. This can be handy if you want to work on a set of related files. Find one, and go to the folder that contains them all.
- File menu
Save Search: saves the search criteria in a file on the Desktop. If Options
Save Results is checked, the results of the search (and not just the criteria) is saved in the file. Unfortunately, the results can't be read in another application, only read back into the Find window.
The save filename depends on the search criteria. If the search was for a named file, the name searched for will be part of the saved filename. Otherwise, it will be called All Files (with a number in parentheses if you save multiple searches).
Notes
- Start
Find
Computer is a separate Find function that looks for a named computer on your network. This is handy if you have a very large Network Neighborhood. Enter any character(s) contained in the destination computer name to get a list of UNC pathnames containing those characters. Case is not significant. The list in the output window is active, so once you've found your target computer, you can click on its icon to open a window onto its contents, just like in Network Neighborhood.
See Also
dir and find in Chapter 5
IconsIt's easy to take icons for granted. They are a ubiquitous and seemingly immutable feature of the Windows 95 interface, but in fact, you have a degree of control over what icons are used for various types of files. In particular, you can use any icon you like for any shortcuts you create, using Properties
Shortcut
Change Icon.
By default, the Change Icon dialog box for a shortcut usually points to \Windows\System\shell32.dll, which contains about 70 different icons, including the standard icons for folders, disks and so on. A browse button lets you search for other sources of icons. But where do you look?
- \Windows\System\pifmgr.dll contains almost 40 additional icons. Except for the MS-DOS prompt icon, you've probably never seen many of these icons. A lot of them are fun and original.
- \Windows\moricons.dll contains about 100 icons, including icons for many non-Microsoft applications.
- \Windows\System\rnaui.dll contains seven icons with telephone imagery. (This is the default icon set for Dial-Up Networking shortcuts.)
- \Windows\Progman.exe contains about 40 icons, including pointing hands, arrows, a safe, a mailbox, doors, interoffice mail envelopes, and many more.
- \Windows\System\user.exe contains the MS Windows icon, a triangular warning icon, a question mark bubble icon, and so forth.
- Any file on your disk with the .ico extension is fair game. Unfortunately, the browse button doesn't make them easy to find. Use Find
Files or Folders and look for *.ico; a small copy of each icon will appear in the Find display next to its name and location. If you see something you like, navigate to it with Change Icon
Browse. (Unfortunately, you can't just copy the path from the Find dialog box and paste it in.)
- Any executable (.exe) file with a unique icon may contain its icon (or icons) within it. For example, drivespace.exe contains eight icons, most with a disk or hardware theme, plus one incongruous yellow smiley face; \Windows\mplayer.exe has multimedia-related icons; and \Windows\regedit.exe has a number of building-block-type icons. Pick any .exe file from the Browse dialog box; if it contains no icon, you'll get a message to that effect, but otherwise, the icon will be extracted and can be applied to your shortcut.
- Any bitmap (.bmp) file can serve as an icon, although most large bitmap files will lose too much detail at icon size. Simply copy the .bmp file, and change the .bmp extension to .ico (again, use Find
Files or Folders to search for .bmp files on your disk--or look at the many graphics file archives on the Net). To see what the icon looks like, you can just copy or move it to the Desktop. Any file with the .ico extension will appear there with itself as the icon.
InboxDouble-click the Inbox icon on the Desktop to launch Windows Messaging (email and fax). Whether this is what you want will depend on your version of Windows 95. The original release used Microsoft Exchange for email; OSR2 uses the same program (with only slight revisions), but it's called Windows Messaging.
Notes
- If the Inbox icon isn't on your Desktop, then Windows Messaging has probably not been installed. You can install it using Control Panel
Add/Remove Programs
Windows Setup
Windows Messaging.
- Fax messages appear in Microsoft Exchange, but you must install both Windows Messaging and Microsoft Fax to send and receive fax messages. Without the Inbox icon on the Desktop, you won't be able to use Windows Messaging or Microsoft Fax services.
See Also
exchng32 and fax in Chapter 5
InternetStart Internet Explorer to browse the World Wide Web.
Desktop
Internet
Start
Programs
Internet Explorer
Start
Run
![]()
iexploreInternet Explorer is a complex program that is not strictly part of Windows 95, although it most likely will be fully integrated in Windows 98. For more information on IE see Internet in a Nutshell, by Valerie Quercia (O'Reilly & Associates).
Notes
Internet
Properties is the same as Control Panel
Internet. This property sheet controls Internet settings that affect any Internet applications that use Microsoft's wininet API (including third-party applications). See Chapter 4, The Control Panel, for details.
LoginDepending on your configuration, you may be asked to log on when your system boots up. There are three reasons you may need a login name and password:
- Unlike previous versions of Windows, Windows 95 is multiuser--that is, more than one person can use the same machine, with a somewhat separate Desktop layout, Start menu, and so on. See "Passwords" in Chapter 4 for more information.
- If your machine is connected to a local area network, your login name and password are required to access any network services.
- If you want the system to be able to remember passwords automatically for applications like Dial-Up Networking or Internet access, you must have initial login passwords enabled.
In any of these cases, you should choose a password when you receive your system. You can later change this (using Control Panel
Passwords). See Chapter 4 for additional information.
My ComputerIn addition to the Explorer view and the DOS view, you can still use the hierarchical folder-in-folder view of the Desktop by clicking My Computer
Drive (C:).
Notes
- My Computer also gives you access to all drives on the system (fixed, removable, CD, network, etc.), as well as the Control Panel, Printers, and Dial-Up Networking.
- Shift-double-click on My Computer to start up the double-pane Explorer window view, with the same starting point.
- In the Explorer, My Computer contains all other files and folders, except for the Network Neighborhood and Desktop folders.
- My Computer
Properties is the same as Control Panel
System.
- My Computer
Drive (C:)
Properties gives useful statistics on the amount of disk space used and free, access to disk utilities, and to sharing. This is true for additional disks on your system as well.
Network NeighborhoodAccess the local network.
Desktop
Network Neighborhood
Explorer
Network Neighborhood
Description
The Network Neighborhood (Figure 3-8) provides a quick way to reach other systems on a local or wide area network. When the system is connected, other systems on the same network are displayed as icons in the Network Neighborhood folder on the Desktop. Click on any icon to connect to that system.
Figure 3-8. The Network Neighborhood folder
![]()
Other systems might include print or file servers or other user's client machines. Often a network is divided into workgroups. If so, only the local workgroup will be shown. Click on Entire Network to step up a level and see the other workgroups.
Any user can designate folders on his or her machine for sharing with other users. You will usually be asked for a password before you can access Shared resources.
Notes
- If you have access to a file or folder on a remote machine, you can create a shortcut to it on your own Desktop or in your own folders, just as you can with a local file.
- On the command line or in the Explorer, you can refer to a resource on a remote system by a UNC (Universal Naming Convention) pathname. A UNC path consists of the name of the remote system followed by the name of the shared resource. For example, the UNC path \\tim\c\inanut refers to the folder called inanut on the shared C drive on a machine called tim.
- To view or change the name of your own system, as shown in the Network Neighborhood, use Control Panel
Network
Identification.
- Network Neighborhood
Properties is the same as Control Panel
Network.
- To share a folder on your machine, go to the folder's context menu
Sharing. If Sharing... does not appear on the context menu, sharing is not enabled. Go to Control Panel
Network
Configuration
File and Print sharing and click on "I want to be able to give others access to my files."
The Sharing dialog box (Figure 3-9) lets you specify the name and access permissions for a shared folder or printer.
Figure 3-9. Folder properties
Sharing
![]()
By default, the folder or printer will be set to Not Shared. Click Shared As if you want it to be shared. By default, the Share Name will be the same as the name of the folder.
You can grant read-only access (the default), which will allow others to view or copy the contents of any files in the folder. Full access will allow them to read and write any files. Click Read-Only or Full and specify the password that will be required to access the folder. If you want some users to have read-only access and others full access, Click Depends on Password and specify two different passwords.
For a printer, full access will allow others to delete jobs from the print queue. You may want to grant full access to printers only to the system or network administrator.
If you leave the password field blank, no password will be required.
The icon for any folder that is shared will change from the standard folder icon to one of a hand holding a folder.
WARNING
If you are using TCP/IP on both your local area network and the Internet, you need to be careful with File and Printer Sharing. You should either make sure that all your shares are password-protected or make sure that the binding for file and printer sharing is disabled. Otherwise, your shared folders will be accessible to anyone out there on the Net.
You can check whether your shares are password-protected using Net Watcher (netwatch.exe). Use View
By Shared Folder, then use Administer
Shared Folder Properties for each share.
- You can map a networked disk or folder to a drive letter using the Map Network Drive button on a folder toolbar or in the Explorer at Tools
Map Network Drive. This corresponds to the
net usecommand, and is especially useful for making network access easily available to older DOS-based programs. You can similarly map network printers to local printer ports (LPT1 and so on) by selecting the printer in the Network Neighborhood window and then using FileCapture Printer Port.
- If you experience network problems, an application that attempts to access the network may appear to freeze your system. Wait 20 or 30 seconds and the system will respond again. Most network programs have a built-in timeout, and will give up after that timeout period.
- Network Neighborhood works only with other Microsoft systems. For example, even though you might be using a TCP/IP network (either on a LAN or via Dial-Up Networking), any Unix systems on the network won't show up in the Network Neighborhood. To transfer files to or from a Unix system on the network, use the ftp command; use telnet for "terminal" access to such a system. A very cool program called Samba can be used to mount a TCP/IP system on Network Neighborhood. See Windows Annoyances for details.
See Also
ftp, net, and telnet in Chapter 5
Office Shortcut BarIf you install Microsoft Office on your machine, it will place a toolbar consisting of a series of icons at the top of your screen. This toolbar can be set to occupy the full screen width (Figure 3-10), working much the same way as the Taskbar (and like it, auto-hideable and draggable to any edge of the Desktop), or occupying only the amount of space needed to show the icons it contains (Figure 3-11).
Figure 3-10. A full screen-width Office Shortcut Bar
![]()
Figure 3-11. A standard-size Office Shortcut Bar with small icons
![]()
The Office Shortcut Bar is not, strictly speaking, part of Windows 95, but it is worth documenting, since it is available on so many systems, and can be used for quick access to any application, not just Microsoft Office.
In addition to the installed Microsoft Office components, this toolbar can display icons for other frequently accessed programs. You can also request additional toolbars (with icons for switching between them) for the Desktop, IE's Favorites, MSN, and the Start menu Programs and Accessories.
To select which toolbars will be displayed, right click on the Office Shortcut Bar. The context menu will list available toolbars.
To customize the Office Shortcut Bar:
system menu
Customize
context menu
Customize
The following tabs appear under Customize
View:
Color
Applies only to the full size toolbar.
Always on Top
A handy setting, although if you also set Auto Fit, it can get in the way of the minimize and close buttons on a maximized window. (If not set to Auto Fit, a maximized window will place its titlebar below the Office Shortcut Bar.)
Auto Hide between uses
As with the Taskbar, makes the Shortcut Bar invisible until you move the pointer to the edge of the screen that hides it, at which point it slides into view.
Auto Fit into Titlebar area
Makes a small toolbar that fits into the upper-right corner of the Desktop (in the titlebar area of a maximized window). If you choose this option, you can neither auto-hide nor drag the toolbar to another location.
Show Tooltips
Tooltips are little information balloons that pop up when you move the pointer over an object: always a handy feature, but especially important if you choose Auto Fit, since the small icons can be hard to distinguish for some tools. (Alternatively, you could choose Large Buttons, but that means losing a lot more screen real estate.)
Customize
Buttons
You can add other icons besides MS Office to the Shortcut Bar--anything you use often. A standard checkoff list of icons appears. Check any that you want shown, and uncheck any that you want to remove. Select an entry and use the Move buttons to move it up or down in the list. (Icons will be shown in the order in which they appear in this list.) Even better, the Add File and Add Folder buttons let you add any file or folder on the system to the list.
Customize
Toolbars
Lets you choose additional toolbars to display. This list is also available on the context menu, although you get more control via the Customize dialog. You can also create additional custom toolbars containing whatever you like using Add Toolbar. If multiple toolbars are selected, you can customize each of their buttons separately on Customize
Buttons.
Customize
Settings
Specifies the location of MS Office templates.
PrintersThe Printers folder contains an Add Printer icon plus icons for any installed printers. Drag items to the printer icons to print them, or click on the printer icon to see or change the status of current print jobs.
Start
Settings
Printers
Control Panel
Printers
My Computer
Printers
Like Fonts (see Chapter 4), Printers is a "virtual folder" rather than a normal Control Panel entry. The folder should include an icon for each printer that is installed on your system.
Add Printer is a wizard that helps you select the appropriate printer driver for a local or network printer. See "Printers" in Chapter 4 for details.
The context menu for any printer allows you to select that printer as the default printer and specify whether print spooling ("offline printing") should be enabled for it. Note that if offline printing is selected, you can print to a network printer even when you aren't connected, or to a local printer when it is turned off; when the printer becomes available, you will be asked whether to print any files in the queue. See "Printers" in Chapter 4 for a description of printer properties.
File
Print is the standard way to print for most applications. Context menu
Print allows you to send a file to the printer without opening it first. You can also create a shortcut to a printer on the Desktop and then drag and drop a file on the printer icon.
WARNING
If you drag more than one file to a printer icon, the system will open a separate copy of the application for each file. This may be okay for text files and a small application like Notepad, but drag a group of Word or Excel files to the printer and you'll bring the system to its knees.
Double-click on any printer icon for a view of the printer's job queue. You'll see the document name, status (printing, paused, and so on), the owner of the job, progress (in number of pages printed), and when the job was started. You can drag your own jobs up and down to change their priority. Use the Printer menu to pause the printer or purge all print jobs. Use the Document menu to pause or cancel printing for any selected document(s). For a network printer, you can only pause, change the priority of, or delete your own jobs.
PropertiesRight-click on many objects, then select Properties from the context menu for information about the object and configuration controls.
many objects
context menu
Properties
Alt-double-click
Alt-Enter if the item is already selected
Description
Almost every context menu includes a Properties entry. These vary greatly depending on what kind of item has been selected. For example, some of the Control Panel functions such as Display and Date/Time are also available via Properties.
This section describes the features of file and folder properties. Other types of property sheets are described as appropriate elsewhere in the book.
At minimum, a property sheet for a file, folder, or shortcut will have a General tab (see Figure 3-12).
Figure 3-12. A property sheet for a folder
![]()
Most of the information on the first page is fairly self-explanatory. A few things need a bit of explanation:
MS-DOS name
The eight-character "short filename" plus three-character extension. If the file has only a short name, this will be the same name that shows up in the Explorer. But if the file has a long name, you will see only the first six characters of the long name, followed by a tilde (~), a digit, and the extension.
Attributes
Check Read-only to prevent a file from being modified by yourself or others. (Obviously, someone else could pop up the property sheet and change the attribute, but it prevents inadvertent modification.)
Check Archive if you want the file to be backed up when a backup program is next run. This attribute is automatically set whenever you modify a file, and is cleared by the same backup programs when the file is copied. By default, hidden files do not show up in the Explorer or via the DOS dir command. See attrib in Chapter 5 for more information about file attributes.
Notes
- Folders, printers, and disk drives have a second property tab called Sharing. See "Network Neighborhood" earlier in this chapter for details. Shortcuts to MS-DOS programs have five separate property tabs. See "Shortcuts" later in this chapter for details.
- To see the amount of disk space used by a group of files, select them, then view the Properties entry for the selected list. On the first tab, you'll see the size of the whole group. Change any of the attributes, and the change will be applied to all of the files in the selected group. (Unfortunately, if any of the files in the selected group has a different attribute from other files in the group, the checkbox for that attribute will be grayed out, so this does not work in all cases. This seems like rather poor user interface design.)
Recycle Bin\Recycled
Move files to temporary storage, pending true deletion.
Recycle Bin
File
Delete
Del key
Description
Drag any item from the Desktop to the Recycle Bin icon to delete it. File
Delete on the menubar of a folder also moves items to the Recycle Bin, as does selecting the item and then pressing the Delete key. By default, files are not deleted immediately, but are stored until the Recycle Bin runs out of space, at which point they are deleted, oldest first, to make space. Until that time, they can be retrieved by clicking on the Recycle Bin icon, browsing through the contents of the Recycle Bin window, and dragging or sending the file elsewhere.
WARNING
Files dragged to the Recycle Bin (or otherwise deleted) from floppies, network drives, or other external drives such as Zip drives will not be stored in the Recycle Bin. They are simply deleted.
Properties
- A slider allows you to specify how much of each drive can be allocated to the Recycle Bin. The default is 10%. You can specify the same value for all drives or set a separate value for each drive. Keep in mind that on today's huge drives, 10% can be a lot: 10% of a 1 gigabyte disk is 100 megabytes of stored junk. The amount of space actually used by the files in the Recycle Bin is displayed in the Bin's status bar when you open it.
- A checkbox allows you to specify that deleted files are not to be stored in the Recycle Bin but removed immediately from the disk. Check this box only if you want to live dangerously.
- A checkbox asks if you want to display a delete confirmation dialog. This delete confirmation will appear when you select Delete from the File or context menu, but not when you drag an item to the Recycle Bin.
Another way to send files to the Recycle Bin without confirmation is to add a Recycle Bin shortcut to the Send To folder. Then you can send something out for recycling by clicking Send To
Recycle Bin.
Notes
- With the Details view (the default), you can sort the contents of the Recycle Bin by name, by original location (useful in case you want to put something back where it was!), by Date deleted, by type, or by size. Click on any of the headings to sort contents by that heading. Click again on the same heading to reverse the order of the sort.
- You can delete the entire contents of a floppy disk by dragging the disk icon to the Recycle Bin. You will be prompted for confirmation. You cannot drag the image of a hard disk (such as C:) to the Recycle Bin (since the Recycle Bin itself is contained on that disk), nor drag key components of the user interface, such as the My Computer, Network Neighborhood, Control Panel, Dial-Up Networking, Printers, and Fonts folders to the Recycle Bin. (Well, you can drag them there, but they won't go in!)
- Some of these Desktop items can be deleted by right-clicking and selecting delete. So if something won't go, try again this way. If it still won't go, see Windows Annoyances (O'Reilly & Associates).
- You can also manipulate the contents of the Recycle Bin from the command line or the Explorer by working in the folder \Recycled.
RunStart programs by typing in a command line.
Start
Run
The Start menu lists many common Windows 95 applications and accessories plus any third-party applications you've installed, but it is far from complete, and navigating to the program you want is often fairly tedious.
Ironically, the increasing complexity of the system pushes even the most graphically oriented user back in the direction of the command line. Just about the quickest way to run any program that isn't already on your Desktop is to choose Run... from the Start menu and type the name of the program, or keep a DOS command-line window open.
The Run... prompt has the advantage of being one of the first items on the Start menu. In addition, it keeps a command history, so you can click on the little down arrow to the right of the text entry area (or use the up and down arrow keys) and re-execute previous commands. Finally (and this is a big advantage), you can type the name of a file, folder, URL, or UNC path at the Run prompt and it will be automatically opened by the appropriate application (if one is registered). Doing this at the DOS prompt will get you the message "Bad command or file name." (However, see start in Chapter 5 for an easy way to run filenames, URLs, and so on from the DOS prompt or a batch file.)
Some Useful Run Prompt Tricks
Type in a UNC pathname to open a shared folder on another computer.
Drag a file icon onto the Run Prompt dialog. Its complete path will be displayed on the Run command line. This is great for building a command line, but is also useful even if all you want to do is find out a file's extension.
With the focus on the Desktop, type a period at the Run prompt to pop up a folder window showing the contents of the Desktop. This can be handy if you have a cluttered Desktop and don't want to minimize all windows in order to see what's underneath. Of course, if you're smart, you'll close the window when you're done or you'll just add to the clutter! (If the focus is not on the Desktop or the Taskbar, this command will open another copy of whatever folder has the focus.)
A DOS window has an advantage in that it can always be left open and that it provides familiar commands (internal to command.com) such as dir, del, copy, and so on. To open a DOS window:
Start
Programs
MS-DOS Prompt
or:
Start
Run
![]()
commandA more important difference, though, is the context in which commands issued from either of these prompts run. A command interpreter, or shell, always has a particular context, or environment, in which it runs. This "environment" can create significant differences in the results when you type a command name.
A significant example of this is the search path, the sequence of directories that will be searched to find an executable file with a name matching the command you type. In DOS, the search path is stored in a variable called PATH, which is typically set in the file C:\autoexec.bat, a startup file that is automatically executed (if present) when the system is booted. (See path and set in Chapter 5 for more information on the content on the search path; see Chapter 9 for more information on autoexec.bat.) A typical PATH setting might look like this:
set PATH=C:\;C:\WINDOWS;C:\WINDOWS\COMMANDwhich says to look in the three directories C:\, C:\Windows, and C:\Windows\Command. If there is a file with the same name in any of these directories, the one that is found first (i.e., in the directory that occurs earlier in the search path) will be executed first.
The search path followed by the Run prompt is:
\Windows\Desktop
- \Windows\System
- \Windows
- The contents of the variable PATH, if found. (It's a good idea to put \Windows\Command in your path.)
When you install applications, they sometimes (but not always) update the search path setting in autoexec.bat or the Registry settings that control the Run prompt path. Many more recent applications (including those in Office 97) don't rely on the directory search path at all, but instead store the individual application's path in the Registry, under the key
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppPaths. So, for example, if you've installed Microsoft Office and you typewinwordat the Run prompt, Word will quite predictably execute. But type it at the DOS prompt, and you'll get the message "Bad command or file name." If you want to be able to run Word from the DOS prompt, you need to add the directory C:\Program Files\Microsoft Office\winword to your search path, or type the complete pathname of the command. Neither of these options may be acceptable, especially if you use a lot of applications with this behavior. Fortunately, the start program (see Chapter 5) is aware of theAppPathsRegistry key. So the surest way to run winword or any similar application from the DOS prompt is simply to typestartwinword. You can also give start the name of any file and it will open the file using the associated application.A further consequence of the environment concept is that commands typed into a DOS window or the Run prompt sometimes have a scope that is local only to that window. For example, the DOS break command, which controls the frequency with which the system checks for Ctrl-C interrupting a program, sets that condition for only the window from which it was issued. It therefore doesn't make any sense to type that command at the Run prompt. If you do, it creates what you can think of as a tiny bubble of execution context in which it holds true, and then exits without a trace.
In addition, there are a number of commands that you can issue at the DOS prompt that are "built in" to the DOS command interpreter, command.com. These built-in commands are labeled as such in Chapter 5. They cannot be issued from the Run prompt.
For the most part, though, you can use the two command lines interchangeably. If you type the name of a Windows GUI application, it will launch in its own window. If you type the name of a text-based program (for example, ping) it will display its output in the current DOS window, or, if issued from the Run prompt, will launch its own DOS window, which will last only as long as the command itself is executing.
See Also
For more information on the DOS command interpreter, see command in Chapter 5.
Send ToSend a selected item to a program, disk drive, or folder.
context menu
Send To
Right-click on any file or folder and select Send To to copy quickly to My Briefcase, a floppy disk in the A: drive, an Internet mail client, or any other application or folder that shows up in Send To menu. The result is the same as if the file was dragged into that program: if it's sent to an Explorer component (such as My Briefcase or drive A:), it might be moved or copied--otherwise, it's opened.
Notes
- The options that appear in the Send To menu are determined by the contents of the \Windows\SendTo folder. To add another Send To recipient, place a shortcut to the desired program into that folder. For example, if you put a shortcut to winword.exe into that folder, you could "send" a text file to Word to open it there rather than using Notepad (which would normally be used to open a file with a .txt extension).
Or add a shortcut to Notepad if you want to be able to easily open text files that don't have the right extension (*.txt) for Notepad to recognize them automatically. That way you can just select Send To Notepad.
- Place shortcuts to folders in Send To for an easy way to organize your files. You can work on files on the Desktop then use Send To to move them to their storage location when you're done. You can even create shortcuts to shared folders on other machines.
- If you want to have a lot of Send To locations, you can create subfolders in \Windows\SendTo. They will show up as cascading submenus on the Send To menu.
WARNING
Send To works a bit differently depending on the destination. Sending to a folder (including the Recycle Bin) actually moves the file there; sending to a program simply opens the file. You can use Send To on shortcuts with impunity, but when you use it on an original file, remember that you may actually be moving the file.
ShortcutsA link to a program, file, or part of a document.
any file or folder
context menu
Create Shortcut
Desktop
context menu
New
Shortcut
You'll notice that some of the items on the Desktop may be labeled "Shortcut to...". A shortcut is also sometimes called a link. It is a small file (with the extension .lnk) that points to another file, and, if it is a shortcut to a program, contains instructions for executing it. The icon for a shortcut has a small arrow in its lower-left corner, by default.
Shortcuts to Programs
While you can start a program by double-clicking on its icon on the Desktop, very few programs have icons on the Desktop, unless you yourself put them there.
If you find that there's a program you use often, and you want it on the Desktop, use the Explorer to navigate to the directory where the program's executable is stored. (The location is given along with the description of each program in the alphabetical program listings in Chapter 5.) You could move the original program icon to the Desktop, but that's often not wise, since the program may have various supporting files that belong with it in the directory in which it was originally installed. Instead, create a shortcut. When you drag an .exe file, it automatically makes a shortcut, unless you have other types of files selected as well when you drag.
The best way to create a program shortcut is to right-drag an item and select "Create Shortcut(s) Here."
You can also put shortcuts in the Start menu folder, the Send To folder, or many other locations. Many system menus such as these are built dynamically from shortcuts stored in a particular folder, so to add a new menu item, all you need to do is put a shortcut in the right place.
You can also create shortcuts to DOS programs. This is a handy alternative to typing at the command line, and lets you put the DOS programs on the Desktop, the Start menu, and the Office Shortcut Bar. See "Shortcut Properties of DOS Programs" later in this section for more information.
Shortcut Properties
To get more information about a shortcut, go to its property sheet. Figure 3-13 shows an example of the second page of a shortcut's properties.
Figure 3-13. Shortcut properties
![]()
Target
If the shortcut is to a command with a command-line equivalent (including, but by no means limited to, DOS programs), you can specify any command-line options or arguments here. For example, if I want a shortcut to telnet to a Unix system, foo.oreilly.com, I would change the target from C:\Windows\telnet.exe to C:\Windows\telnet.exe foo.oreilly.com. Note that if you type the name of a shortcut at the Run or command prompt, any parameters or options supplied there will override options set on the Target line.
Start in
If the shortcut is to a program, this option specifies the folder in which the program will run, and where, by default, it will look for files to open or save.
Shortcut key
You can map a key sequence to open or execute the shortcut. Press any key on the keyboard and you will see CTRL+ALT+key appear as the shortcut key sequence. Type that sequence to launch the shortcut without clicking on it. You should check Appendix A, Keyboard Accelerators, to make sure that you aren't creating conflicts with any existing keyboard accelerator.
WARNING
If you delete a shortcut with a keyboard accelerator configured, Windows won't release it. It will warn you when you try to create another accelerator that duplicates a previous one, whether or not it's been deleted. If you've defined a keyboard accelerator, clear it before deleting the shortcut.
Run
A drop-down list allows you to specify whether the target application should run in its normal window, maximized, or minimized.
Find Target
Click this button to open the folder containing the original file to which this shortcut is a link. The original file will be selected in the folder window.
Change Icon
You can select from hundreds of available icons. See "Icons" earlier in this chapter for details.
Shortcut Properties of DOS Programs
Since DOS programs weren't originally designed to function in a Windows environment, they've been retrofitted using a construct called Program Information Files (.pif files). Notice that the MS-DOS name on the General tab for any shortcut to a DOS program ends with the .pif extension. (Actually, these .pif files apply not so much to DOS programs as to character-mode programs. Besides DOS programs, Windows 95 also supports character-mode 32-bit Windows programs, called "console" applications, such as xcopy32.exe, start.exe, and rundll32.exe.)
The .pif file contains the information required for the character-mode program to function in the Windows environment. The property sheet is the interface for editing the .pif file.
A .pif file's properties have the following five tabs in addition to the General tab: Program, Font, Memory, Screen, and Misc.
Program
This tab is similar to the Shortcut tab of a normal shortcut (as shown in Figure 3-14). It lists the command line associated with the shortcut, with information such as the working directory, a keyboard accelerator, if one exists (the Shortcut key), and whether the program should run in a normal window, iconified, or maximized. There's a "close on exit" checkbox; removing the check is useful for programs whose output you need to see after the program has exited (mem.exe, for example).
The Advanced button lets you specify how the program will interact with Windows. Some older programs (especially games and other programs that are accustomed to having full control over the hardware) have difficulty cooperating with Windows. There are two workarounds: prevent Windows from answering "yes" to any "is Windows running?" calls the program might make (this is similar to faking the DOS version number with setver.exe; see Chapter 9, Windows Startup), and closing Windows before running the program (MS-DOS mode). The default is "Suggest MS-DOS mode as necessary." If this box is checked, when you click on the shortcut, Windows does its best to determine whether the program needs MS-DOS mode and puts up a dialog asking if you want to enter MS-DOS mode. See Figure 3-14.
Figure 3-14. Advanced program settings
![]()
If you check MS-DOS mode, clicking on the shortcut will close all Windows programs and shut down Windows before running, and will restart Windows when it is done. You can then choose from two radio buttons: "Use current MS-DOS configuration" and "Specify a new MS-DOS configuration." If you choose the former, MS-DOS mode will use your existing config.sys and autoexec.bat files (if present). If you choose the latter, MS-DOS mode will construct temporary versions of those files containing the commands listed on the dialog box shown in Figure 3-15. Type in additional commands or click Configuration for a wizard that will help you build additional entries for these files.
Figure 3-15. The Font tab
![]()
Font
Lets you choose the display font size for the DOS window (see Figure 3-15). Fonts are identified by a width and height in pixels (e.g., 7 ¥ 12).
Memory
Lets you specify any specific memory or extended memory settings required by the program. In particular, you can set the size of the DOS environment.
Screen
This tab has several useful options. You can specify whether the program will run full size or in a window, and the initial size of the window in lines.
If you choose "Display toolbar," the DOS window will include a useful toolbar that gives you access to the Clipboard, the properties, the font, and a button to switch into full-screen mode. (To return from full-screen mode to window mode, press
Alt-Enter.)"Restore settings on startup" means that if you change the font or size, they will be remembered the next time you start up this program.
Figure 3-16. The Misc tab
![]()
Misc
The Misc tab is shown in Figure 3-16.
Allow screen saver
Unless this box is checked, an open DOS program window will not give up control of the screen to a screen saver, effectively disabling the screen saver. However, if it is checked, performance may suffer, so you may not want to choose this setting while running games or other performance-intensive programs.
Always suspend
Keeps the program from using any system resources when it is invisible. Select this for programs that don't do anything useful when running in the "background." (Communications programs should never leave "Always suspend" checked, or they will likely hang up if you switch to another window.) The Idle sensitivity slider controls how long the program will need to go without any keyboard input before it is considered inactive, and has its CPU utilization reduced.
QuickEdit
Enable the mouse for selections and cut and paste in the DOS window if this is checked. Otherwise, you must click the Mark button on the toolbar before you can make selections. Note that QuickEdit will not work with all programs (which is why the Mark button is provided on the toolbar).
Exclusive mode
Reserve the mouse for use by this program. It can't be used outside this program's window. Set this only if the program absolutely requires it.
Warn if still active
Many DOS programs don't have the nice Windows feature of asking you to save your files if you haven't done so when you exit. Checking this box tells Windows to warn you if you try to close this program's window while it is still running.
Windows shortcut keys
If the program uses some of the keyboard accelerators that are normally used by Windows, you can disable them here. Clear the checkbox for a key sequence if you want Windows to ignore it when the program is in use.
Shut DownShut down the system.
Start
Shut Down
Ctrl-Alt-Del
Shut Down
A Windows 95 machine should never be simply turned off, because the system caches data in memory and needs time to write it out to disk before it is turned off. Use Shut Down before you turn off the power.
Notes
- Start
Shut Down pops up a dialog box from which you can choose to shut down, reboot, reboot in DOS mode, or simply close all programs and login as another user. The old Ctrl-Alt-Del "three-finger salute" is no longer a system-wide "Vulcan nerve pinch." Instead, it brings up a Close Program dialog box from which you can end a specific task or shut down the system. If you choose Shut Down, shutdown will begin immediately. You don't have the same options as you get with Start
Shut Down.
- Some programs cannot be closed automatically by the shutdown process. If one of these programs is running, you will be given an opportunity to close the program and continue with shutdown (click OK) or to cancel (click Cancel) the shutdown operation.
- To restart Windows without rebooting the computer, hold down the Shift key while clicking OK in the Shut Down dialog box.
- Choose "Close all programs and log on as a different user," but then log back on as yourself for a quick reboot. This is usually sufficient to unwedge any stuck programs. It's also a great way to force Win95 to save any Explorer settings, such as the positions of the icons on the Desktop.
See Chapter 9 for a more detailed description of system startup and shutdown.
Start MenuA quick way to get to many of the most common system functions.
Desktop
Start
Ctrl-Esc
Press the Windows logo key on Win95 keyboards
The Start menu is one of Windows 95's answers to the growing size and complexity of the operating system. There's just not enough room on the Desktop for every program or file that a user wants to keep handy.
The Start menu includes a few important system commands, followed by cascading menus labeled Settings, Documents, and Programs (see Figure 3-17).
Figure 3-17. The Start menu
![]()
One of the fastest ways to use the Start menu is to press Ctrl-Esc, then use underlined letters or arrow keys to pick items from the menu. For example, Ctrl-Esc R will pop up the Run prompt.
Notes
- Any file or folder stored in the folder \Windows\Start Menu will show up on the Start menu. Not all the entries are created this way, however. Some of the menu items are built into the Explorer, and others are stored in other folders.
- To add a program to Start
Programs, just put a shortcut to the program into \Windows\Start Menu\Programs. You could add any other frequently used folder as well. Folders can be nested; each level of nesting will result in another level of cascading menu. Feel free to reorganize Start
Programs any way you like.
Since everything in that directory is a shortcut, you can delete things without fear. You can also rename them or put them in subdirectories so that they appear in a different order. And of course, you can make new programs appear on the Start menu by putting shortcuts to them into that directory.
Start
Programs can also be customized using Taskbar
Properties
Start menu Programs. The Advanced button launches an Explorer window with its root at the \Windows\Start Menu\Programs folder; you can reorganize using the Explorer. You can also right-click on the Start menu button and select Explore or Open.
- You can also add programs to the top level of the Start menu by dragging and dropping their icons onto the Start button. This will place a shortcut directly into the \Windows\Start Menu folder rather than \Windows\Start Menu\Programs; the icon for the program will appear in alphabetical order in a section at the top of the Start menu. You should do this only for programs that you use fairly often. Good programs to add there might be the Explorer and DOS.
Start Menu Customization Tips
Start
Programs can get fairly cluttered, since most programs add shortcuts to this menu as part of their installation process. As a result, you might not notice a couple of important subfolders:
Start
Programs
StartUp contains shortcuts to any programs that should be started automatically when the system boots up. Put shortcuts to programs into the folder C:\Windows\Start Menu\Programs\StartUp to have them run automatically. See "Startup Folder." later in this chapter for additional details.
Start
Programs
Accessories contains many of the bundled Windows 95 utilities, including system tools and games.
- Start
Documents contains a cache of shortcuts to any recently opened files. The cascading menu off this item reflects the contents of the folder \Windows\Recent, and any file operations performed on that folder will be reflected in this menu. You can also clear the cache (i.e., remove all the shortcuts from this folder) using Taskbar
Properties
Start Menu Programs
Documents Menu
Clear. But if you want to clear some of the entries but not others, you need to go to the folder with the Explorer or the DOS prompt and do the dirty work there.
See Also
Chapter 5 for a discussion of Start
Settings
Other entries in this chapter for a discussion of other menu items
Startup Folder\Windows\Start Menu\Programs\StartUp
If you want a program to start up automatically when you reboot the system, put a shortcut to it into the directory C:\Windows\Start Menu\Programs\Start Up. If you want it to start up minimized (in which case it will simply appear in the Taskbar), set the shortcut's Properties
Program
Run to Minimized.
Notes
- If you want programs in the Startup folder to run in a particular order, instead of putting in shortcuts to each program, create a single DOS batch file, containing lines of the form:
start programname
The programs will start in the order in which they are listed in the batch file. If you want a program to complete before the next one starts, use start /w.
- To bypass the programs in the Startup folder, hold down the Shift key while the system is booting. Keep holding it down until the Desktop is complete with pointer. Obviously, this won't work if you have to log in as part of the startup process.
- In addition to the startup folder contents, the Registry settings
HKEY_LOCAL_MACHINE\Microsoft\Windows\CurrentVersion\Runand\CurrentVersion\RunServicesspecify a list of programs to run, as does the Run= entry in the win.ini file. (See Chapter 9 for details.) See also\Current Version \RunOnce,\CurrentVersion\RunOnceEx, and\CurrentVersion\RunServicesOnce.
System TrayA part of the Taskbar is used for displaying various system status indicators, including the system clock. If no status indicators have been selected, the System Tray will not be displayed. The clock is displayed by default on most systems. Some of these icons are "active"--but they are extremely inconsistent in this behavior: some respond to a right-click, some to a left-click, some to a double-click, and some don't respond at all.
Table 3-1 summarizes the indicators that can be put into the System Tray with the location of the checkbox that controls whether the item is to be displayed.
Notes
- Leave the pointer over the clock for a few seconds to display the date in a Tooltips bubble.
Right-click on the clock when it is displayed to adjust the system date or time. (You can also do this with the Date and Time commands or Control Panel
Date/Time.) The tabbed dialog that appears also allows you to set the time zone and have the system automatically adjust the clock for daylight savings time changes.
- The System Tray is available to any application that chooses to use it--or misuse it. For example, AOL 4.0 installs a startup icon in the System Tray (as well as just about anywhere else it can put one)--a clear abuse of the intended purpose.
- On OSR2 systems, Dial-Up Networking places a network icon (two connected computers) in the System Tray while a network connection is active. On earlier systems, the connection status dialog appears as a regular button on the Taskbar, and a modem icon is shown in the System Tray. Click on the icon to display current connection status, including the amount of time online and the number of bytes transferred. A button on the status dialog box also allows you to terminate the connection.
- The language indicator is useful only if multiple keyboard layouts are enabled. Click on the indicator to display a popup menu that lets you switch between available keyboard layouts.
- The power status indicator is generally useful only on laptops. It shows a plug when the system is connected to AC power, and a battery when the system is running on the battery. The height of the color in the battery gives a rough idea of how much power is left; to get a more precise estimate, hold the pointer over the indicator until a Tooltips bubble pops up showing the percentage charge remaining.
- The PC card indicator gives you a quick way to get to the Control Panel
PC Card property sheet. This is useful if you are going to be taking PC cards in and out of your system frequently, since the system prefers to be notified before you do so.
TaskbarThe Taskbar contains buttons for each open window on the Desktop (see Figure 3-18). The button corresponding to the window that has the focus appears depressed. To bring a window to the front, click on its Taskbar button. When a window is minimized, its icon appears on the Taskbar rather than on the Desktop itself (as in Windows 3.1).
Figure 3-18. The Taskbar
![]()
Notes
- By default, the Explorer displays the Taskbar at the bottom of the screen. You can drag it to the top or either side using any empty space on the bar as the drag handle.
- As you open more windows, the Taskbar buttons become smaller, displaying less and less text. If you have so many open windows that only the 16 ¥ 16 icon for each one is showing on the Taskbar, no more will be displayed. A small "spin control" will be displayed so that you can rotate which icons are visible.
However, you may want to modify the size of the Taskbar by dragging the edge up or down (or sideways, if you've moved it to the right or left side of the screen).
- If the focus is on the Taskbar, you can use the arrow keys to move between the buttons for open programs. Ctrl-Esc will open the Start menu.
- By default, windows are scattered around the Desktop as left by the user. The context menu for the Taskbar lets you cascade all open windows or tile them horizontally or vertically. You can also use the context menu to minimize all windows at once (reduce them to the Taskbar) or to move them to the Desktop.
Properties
- Enable Taskbar
Properties
Taskbar Options
Always on top (see Figure 3-19) to specify that the Taskbar can't be covered by open windows as you move them around the Desktop. Note that the working Desktop space is decreased with this option--maximized windows stop above the Taskbar.
Figure 3-19. The Taskbar Options tab
![]()
- If Taskbar
Properties
Taskbar Options
Auto Hide is enabled, the Taskbar will be invisible until you move the pointer to the edge of the screen where it is hidden. It will then slide up into view. This gives you a bit more Desktop real estate, but can be a little disconcerting. Even if Auto Hide is on, if you give the Taskbar the focus, it will stay visible until you give the focus to another window.
- Enable Taskbar
Properties
Taskbar Options
Show Clock to display the time in the System Tray if it's not already visible.
- Taskbar
Properties
Start menu can be used to add or remove programs from the Start menu. The Add... button prompts you for the name of a program command line; a wizard will add a shortcut to the \Windows\Start Menu\Programs folder. The Advanced... button launches an Explorer view of the Start menu folder hierarchy. See "Start Menu." earlier in this chapter for an easier way to customize the Start menu.
- Another button on the same property sheet lets you clear the contents of the Documents menu. (You can do the same thing from the command line or the Explorer by deleting all the shortcuts from the folder \Windows\Recent.)
Back to: Windows 95 in a Nutshell
© 2001, O'Reilly & Associates, Inc.