Search path for commands, How to execute user command files, How to ex ecute us er command files – Gasboy CFN III Mgnr's Mnl V3.4 User Manual
Page 194

Making Your Own Commands
Page 178
MDE-4315 CFN Series CFN III Manager’s Manual for Windows NT · August 2004
busy.)
Search Path for Commands
Before the Site Controller can execute a disk-based command, it must locate it.
The Site Controller looks for disk-based commands in certain directories in a
certain order. This order is called the search path. The Site Controller executes
the first command it finds that matches the command name given.
Standard Search Path for a CFN3 application
(The paths shown above are the default. You can configure a different path with
menu page 7 of the SYS_PAR program, as explained in MDE-4316 CFN III
Configuration Manual.)
A command file (.CMD extension) with the same name as a regular executable
command (.BIN extension) will not be executed if the .BIN file is in the same
place on the search path. The .BIN file will be executed instead because .BIN
files have precedence over .CMD files.
For example, if TREE.BIN and TREE.CMD are in the directory BIN, when you
type TREE, TREE.BIN will be executed.
How to Execute User Command Files
To execute a user command file, type the file’s name without the extension. If
the command file is not in the search path, you must type the pathname of the
command.
Output of command files is printed on the command terminal unless you
redirect it by using either ENABLE DUMP (see below in this chapter) or the
redirection options (> or >>) in the command file.
R:
the RAM drive
.
current directory
P:BIN
BIN on hard drive