This is only a preview of the September 1991 issue of Silicon Chip. You can view 44 of the 96 pages in the full issue, including the advertisments. For full access, purchase the issue for $10.00 or subscribe for access to the latest issues. Articles in this series:
Articles in this series:
Articles in this series:
Articles in this series:
|
COMPUTER BITS
BY JENNIFER BONNITCHA
Swapfiles, program groups & icons
After you have instal~ed Windows, you can
easily customise it to suityour requirements.
This month, we show you how to create new
program groups & items.
Windows 3.0 probably has the
smartest installation routine around
- but it's not always as smart as it
could be. Setup scans the CONFIG.SYS
and AUTOEXEC.BAT files to disable
utilities it thinks will conflict with
Windows and where possible it replaces them with its own Windowscompatible versions. If you use TSRs
(Terminate and Stay Resident programs) such as SideKick, you should
remove the appropriate lines from
AUTOEXEC.BAT. You can use TSRs with
Windows but you should load them
after Windows is running.
Before installing Windows, it's a
good idea to make a copy of the
AUTOEXEC.BAT and CONFIG.SYS files
so that you can check them against
the installed versions.
Once you have installed Windows
.Eile
66
.Qptions
Window
New program groups
The Program Manager's menu bar
contains four options: File, Options,
Window and Help. Rather than having Windows separate your applications into Windows and Non-Windows applications, you may want to
group all your frequently used applications together. You can easily create a new Program Group by selecting
File then New from the Program Manager menu bar.
Fig.1: the Program
Manager window
gives you access to
the other Program
Groups (along the
bottom of the screen)
& is central to the
operation of
Windows. It runs
continuously in the
background,evenif
other applications
are selected.
!::felp
rnifil
rnifil
Games
Non Windows
SILICON CHIP
and started the program, you are presented with a desktop containing
many icons (pictures). These icons
are the items you select to perform
various tasks. You will usually see
the Program Manager and any associated Program Groups. You can think
of the Program Manager as a kind of
shell for Windows because all applications run under and are controlled
by the Program Manager.
It is from this main window that
you are able to access other Program
Groups and options (Fig.1). Thus, the
Program Manager is central to those
operations that enable the execution
of Windows and Non-Windows Applications and utilities. It also manages your computer resources so you
can have more than one application
running at the same time. Although
you can minimise the Program Manager, it is always running in the background until you exit from Windows.
The Program Manager is responsible for setting up and supervising any
applications you want to run under
Windows - a set of related applications or programs is called a Program
Group. The Program Manager initially
contains five Program Groups - Main,
Accessories, Windows Applications,
Non-Windows Applications and
Games. All the applications in the
Accessories window, for example,
form a Program Group (Fig.2).
ffi
Applications
~
~
ffi
Main
Accessories
Fil
~
•
~
Write
Win
Paintbrush
Terminal
ll!J!D
Uillil.
Calendar
Calculator
6
Cardfile
~
mm
mm
Games
Non Windows
Windows then displays the New
Program Object dialog box (Fig.3)
which allows you to create either a
new Program Group (a collection of
related applications) or Program Item
(a single application within a Program Group). Select Program Group if
necessary, then click on OK. Next,
Windows needs to know about the
intended purpose of the Program
Group (Fig.4) by means of a Description (Windows normally fills in the
Group File section for you) such as
My Apps. Once you choose OK, you
are ready to place Program Items into
your new Program Group.
Copying & moving icons
You can move program icons according to your own preferences. You
could group all your commonly used
applications in the above My Apps
Program Group rather than using Windows ' separate groups. You could also
place commonly used accessories
such as the card file or calculator into
My Apps. You can move icons from
one group to another by pointing to
~
1111111
0
e
Recorder
kJ[)
Clock
mm
Friim1
lliMJ
Applications
Aldus
PIF Editor
the icon, then dragging with the mouse
to the new group window; if you hold
down the Ctrl key while you drag,
you will leave the icon in its original
group window and copy it to the new
window.
New program icons
When you purchase a new application and you want it to run under
Windows , you will probably want to
add it to a Program Group. One of the
options from the Program Manager
file menu is Run - you are advised to
run all Windows applications installation programs in this way as Windows will not only install the new
program but also place the appropriate icon in the current Program Group
for you.
Supposing you want to place a Program Item for an existing application
into a Program Group. First, activate
the appropriate Program Group (such
as My Apps) then select File New
from the Program Manager menu bar.
Since a group window is already open,Windows assumes you want to add a
Fig.2: a set of related
programs or program
applications is called
a "Program Group".
This figure shows the
programs normally
available in the
Accessories window. .
The programs in the
remaining Program
Groups at the bottom
of the screen can be
displayed by doubleclicking on the icons.
Program Item and so automatically
selects it (Fig.5). After choosing OK,
you then need to give Windows a
short Description of the Program Item
and tell it where to find the application and how to start it (Fig.6).
Possibly the easiest method is to
type the Description, press the Tab
key to place the typihg bar on the
Command Line and then choose the
Browse button to locate the program's
directory and the name of the file that
loads it into memory. Once the application's (generally) .EXE file is located,
choose OK then you can try to Change
the icon that displays in the Program
Group - although not all programs
provide a special icon.
Deleting icons & groups
If you decide a Program Item is no
longer needed to run a particular application in Windows (you may decide to group your favourites in My
Apps for example), you can remove
the item. Deleting the Program Item
does not actually delete any of the
program files - only the program icon
New Program Object
New
<at> )ir.ciiir.ain.:iiro.up·:
0
Pro gr am ltem
OK
Cancel
~oup File:
OK
Fig.3: a new Program Group is created by first selecting
File & then New from the Program Manager menu bar:
Windows then displays this New Program Object dialog
box. Select Program Group as shown, then click OK.
I Cancel
Fig.4: after you click OK in the previous dialog box,
Windows displays the J>rogram Group Properties dialog box.
This allows you to assign a name to the Program Group,
while Windows fills in the Group File section for you.
SEPTEMBER1991
67
Fig.5: to add a Program Item to an existing Program Group,
you first activate the appropriate Program Group (such as
Applications), then select File New from the Program
Manager menu bar. Since a group window is already open,
Windows assumes that you want to add a Program Item and
so automatically selects it in the dialog box
New Program Object
New
0
OK
Program Group
<at>:rr'i:i\irii"mlfein";
Cancel
is removed. Select the required icon
then press Delete or choose File Delete from the Program Manager Menu
Bar. Windows asks you to confirm the
deletion.
When you delete a Program Group,
first minimise the group window then
use the same procedure described
above. If you want to remove all associated files, you need to use the File
Manager to delete the files and remove the directories. Of course, you
could also delete the files from the
DOS prompt, but that defeats the purpose of the exercise, doesn't it?
Swapping files
One important way you can speed
up Windows ' operation is to defragment your hard disc prior to installation with a utility such as the one
included in Norton Utilities. There
are not many applications performing
such disc-intensive activities. Computers with 386 processors or higher
can use virtual memory when in 386
enhanced mode. When Windows requires more memory it swaps information from memory to a swap file on
the hard disc. This permanent or temporary hidden file reserves space on
the hard disc for Windows to use for
swapping.
Windows automatically sets up a
temporary swap file when running in
386 enhanced mode although a permanent swap file is desirable since it
stays on disc and consists of contigu-
.
Command Line:
OK
Fig.6: this dialog box allows you to name the new Program Item & provide
Windows with the necessary information to find & start the program
ous disc blocks. The temporary swap
file is created dynamically each time
you start Windows. If you want a permanent swap file, Setup calculates
the optimal size for the file based on
the largest contiguous space it finds
on the disc, thus it is advisable to
defragment prior to installation.
The permanent swap file dramatically increases the performance of the
system because the file is stored in
contiguous clusters, thus reducing the
access time significantly. Should you
decide to stay with the temporary
swap file, regular defragmentation is
a good idea so Windows can find sufficient space to create a large enough
dynamic swap file .
Temporary or permanent ?
If you did not create a permanent
swap file during Setup, a temporary
swap file is created each time you
start Windows. Windows determines
the optimum size, but always leaves
at least 512Kb free on the hard disc.
You can set aside a portion of your
SwaplileSwapfile has lound a suitable location for a swap lile
on drive C:
Largest ponible swap file size:
Total lree dislt space:
i llrowse...
Cancel
,
Creilte
8194K bytes
16554K bs,tea
Cilncel
Reco-.ded awai, lile size:
Fig.7: when Windows is running in 386 enhanced mode & gets low on memory,
it swaps information from memory to a swap file on your hard disk. Although
you can use a temporary swap file (Windows will create one each time it boots
up), a permanent swap file will give noticeably improved performance.
68
SILICON CHIP
hard disc for a permanent swap file
after installation. As suggested above,
make sure you defragment your hard
disc first for the best results.
Start Windows in real mode by typing WINIR at the DOS prompt. Make
sure only the Program Manager is active, choose File Run, type swapfile
then choose OK. Windows then displays the Swapfile dialog box (Fig. 7)
which suggests the size of the largest
swap file (contiguous disc space) that
can be created on the current disc and
the total amount of disc space available (contiguous and discontiguous).
You can then make any necessary
changes although as a general rule
larger is better (make sure you leave
enough disc space for normal operations) then choose Create. Exit from
Windows then start Windows in 386
enhanced mode by typing WIN. When
low on memory, Windows will now
swap information from memory to the
permanent swap file you just created.
The swap file can be changed back to
a temporary file by following the above
procedure and choosing Delete from
the Swapfile dialog box .
Choosing disc drives
If your computer has more thaJ.l one
hard disc, for optimum performance
place the swap file on the disc drive
with the most available space. You
can set the size and location of temporary swap files in the SYSTEM.IN!
file as well as limit the disc space
actually used.
Next month, we look at the
SYSTEM.IN!, WIN.IN! and PIF files, to
see how you can further customise
your window to the world.
SC
|