User Guide

58 Server Operating System Administration Guide
Server Operating System Administration Guide
103-000148-001
August 30, 2001
Novell Confidential
Manual 99a38 July 17, 2001
Editing and navigation keystrokes are listed at the bottom of the screen.
For additional help, press F1.
5 When finished, save the file by pressing F10 and selecting Yes when
prompted. To exit without saving, press Alt+F10. Changes to the file take
effect after you reboot the server.
IMPORTANT: Each time you edit the AUTOEXEC.NCF file or the STARTUP.NCF
file, NetWare saves the previous version as AUTONCF.OLD or STARTNCF.OLD.
For more information, see NWCONFIG in Utilities Reference.
Making a Command Optional in a Server Batch (.NCF) File
By default, an .NCF file executes all the commands within it. However, to
make a command optional, you can place a question mark (?) in front of it.
The question mark causes the .NCF file to pause at the command and prompt
you to execute it. You can respond either Yes or No. You can also specify a
default response.
For example, the following line in the AUTOEXEC.NCF file causes the file
to pause and ask whether to execute the LOAD MONITOR command:
? LOAD MONITOR
When the AUTOEXEC.NCF file is executed, it displays the following
prompt:
LOAD MONITOR? Y
The default response is Yes. If you do not respond to the prompt, the default
response is executed after 10 seconds.
Both the default response and the time period are configurable.
Setting the Default Response
There are two ways to configure the default response to the command prompt:
Specify the default on the command line in the .NCF file. Place the
default response (a Y or N) immediately following the question mark. For
example,
?N LOAD MONITOR
In this example, the default response is N. If the user does not respond to
the prompt, MONITOR is not loaded.