Review:Software
Ten More Useful NT
Resource Kit Utilities
We've often mentioned what a crucial part of NT the Resource Kit is, even though it's
supplied as a separate product. Previously, we described our 10 favourite RK utilities
and their uses; here are 10 more you won't want to be without.
By Simon Pride
I
n the previous article [Ten Useful
which is just under 28 hours. To use
ing sed, awk or the Perl language to do
NT Resource Kit Utilities, PCNA
TIMEOUT like PAUSE   that is, to wait
this in their environment, and al 
116, File E1716] I introduced
indefinitely until the user presses a key
though Perl is readily available on
around 10 of the Resource Kit utilities
  specify an interval of  1 on the com 
Windows NT the other two utilities are
I reach for on an almost daily basis. The
mand line. Figure 1 shows a simple
not. MUNGE more or less fills the gap
Windows NT Resource Kit comprises
evocation of TIMEOUT from the NT
left by their absence.
a set of documents describing the
command prompt and its user inter 
A simple use of MUNGE uses a sin 
workings of NT in detail, and utilities
face whilst running.
gle script file and a command line fil 
that provide the missing commands
SLEEP is more or less an exact
ter. Imagine you have a large number
and tools that system administrators
equivalent of the Unix sleep(1) com 
of Web pages that reference each other
coming from other OS backgrounds
mand, suspending execution of the
using the extension  .HTM . You wish
are used to having.
script from which it is called for the
to move your files to a more compliant
The Resource Kit is available in two
number of seconds passed to it as an
Web server and, in the process, convert
versions, one for NT Workstation and
integer on the command line.
the file names to end in the more ca 
one for NT Server; however, the Work 
nonical  HTML .
station Resource Kit is a subset of the
MUNGE
Renaming the files is trivial, but up 
Server Resource Kit, and the serious
MUNGE is a utility for altering the
dating all the links in a set of tightly
system administrator will want to use
contents of text files. It is most often
cross referenced Web pages could
the latter.
called from a script   if it was appropri 
take days. MUNGE can do this imme 
ate to edit the file manually then that
diately. To do this simply create a
Batch File Commands
is what you would be doing, using a
small text file with a single line in it:
good text editor to help you. MUNGE
First, let's look at some more com 
is for those situations when a file needs
HTM HTML
mands which are most useful when
to be altered and a human can't be
used in scripts (batch files).
there to do the necessary work.
Save the file as names change.script
Unix users will be familiar with us 
(remember we're on NT now, we can
TIMEOUT And SLEEP
These are two time related com 
mands used in scripts. TIMEOUT is a
grown up
version
of
MS DOS's
PAUSE command. In one mode it will
do exactly what PAUSE does, waiting
for the user to press a key. More use 
fully, it can take a parameter which
tells it for how long to pause and invite
user input before continuing with the
script, unless a key on the keyboard is
pressed in the interim.
TIMEOUT takes a single parame 
ter, an integer which specifies the
number of seconds the command will
wait before resuming operations. The
maximum time is 100,000 seconds,
Figure 1   Timeout counting down from 50 seconds.
PC Network Advisor
Issue 119 (June 2000) page 7
File: R1520.1
www.itp journals.com
Next page  >
New! The best sites for quality inkjet printer cartridges and the best sites for cheap inkjet cartridges
Windows Help Desk Home