After all, it??™s
a little hard to create a batch file or script if you don??™t know how the command works. However,
using a command doesn??™t have to be hard. All you need to remember are two simple characters,
/?
.
That command line switch says, ???Help me!??? The command usually will help by presenting you
with some options for using it.
Let??™s begin by working with one of the more useful commands to determine how much of a load
the server is carrying. Type
TaskList /?
and press Enter. Figure 2.1 shows what you??™ll see. (I??™ve
scrolled back to the top so you can see the major entries.)
Figure 2.1
Make things simple;
ask the command for
usage instructions.
The first piece of information is the usage instructions for the command. A set of square brackets
(
[]
) tells you about an optional input. In this case, everything is optional; you can use TaskList by
itself.
A slash (
/
) tells you about a command line switch. Sometimes command line switches appear
with a dash (
-
) instead. In either case, a command line switch configures the command to perform
a task in a specific way. For example, TaskList doesn??™t normally display services, but you can tell
it to display services by adding the
/SVC
command line switch.
Pages:
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129