Every time you use the
More utility, it searches for this environment variable and sets itself up accordingly.
Command line environment variables need not impose on those used in Windows. Besides
setting environment variables in the Environment Variables dialog box and at the command line
using the Set command, you can add environment variables to the AutoExec.NT file. Windows
executes the commands within AutoExec.NT every time it opens a command prompt for you.
These environment variables appear every time you open a command prompt, but won??™t appear
within Windows. You use the Set command within the AutoExec.NT file, just as you would at the
command prompt. The ???Modifying AutoExec.NT??? section of the chapter describes the
AutoExec.NT file in more detail.
122 CHAPTER 5 CREATING CMD AND BAT FILES
For all of the tasks that it performs, the Set command is relatively simple. This command uses
the following syntax:
SET [variable[=[string]]]
SET /A expression
SET /P variable=[promptString]
The following list describes each of the command line arguments.
variable Specifies the environment variable name. The name can??™t contain spaces or most
special characters.
Pages:
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337