User Guide

152 Other Installation Options
Other Installation Options
103-000143-001
August 30, 2001
Novell Confidential
Manual 99a38 July 17, 2001
SrchNCF
Syntax
SrchNCF <ncf path var>, <ncf file name>, <keystring>,
<foundline var name>
Description
SrchNCF searches an .NCF file for line containing a substring matching
<keystring> (non case-sensitive). If found, the line of text will be returned;
otherwise <foundline var name> will be empty.
NOTE: The same value as not found will be returned if an error is encountered (for
example, invalid filename, read error, etc). It is assumed that this command will be
used before calling EditNCF (page 137) which returns a more detailed completion
code that can be acted on as necessary.
Example
GetPath sys, 1, 'SYS:\\', ''
SrchNCF sys, 'SYSTEM\\AUTOEXEC.NCF', “Load Monitor”, ccode
The SrchNCF command will search the SYS:\SYSTEM\AUTOEXEC.NCF
file for the string 'Load Monitor' and return the line number in ccode if found.
ValueSet
ValueAdd
Syntax
ValueSet <var name>, <value>
Value Add <var name>, <value>
Description
ValueSet sets, and ValueAdd adds to, the numeric contents of variable <var
name>.
Example
ValueSet srcVar, 1
The variable srcVar is created if it did not exist and is set to 1.