beautypg.com

Avery Dennison 6037 Rev. AA 3/04 Programmer Manual User Manual

Page 97

background image

ROM-DOS Internal Commands 4-55

P A T H

Internal Command

The PATH command sets the search path for command files that are not
in the current directory.

Syntax

PATH [drive:][path][;[drive:][path]] ...

Remarks

Without a specified search path, ROM-DOS looks for an external
command file (one with a .BAT, .COM, or .EXE extension) only in the
current directory. The PATH command tells ROM-DOS which other
directories to search after searching the current directory.

To append one or more additional directories to the PATH, use %PATH%
for the current path. For example, to add C:\DOS to the current path,
enter:

PATH %PATH%;C:\DOS

at the command prompt.

Enter PATH without parameters to display the current path.

To cancel previously set command paths, enter:

PATH = or PATH =;

Example

If your application programs reside on a fixed disk, the PATH command
enables you to start any of them from any drive or directory. To access
utilities, a word processor, and a spreadsheet in subdirectories C:\UTIL,
C:\WP, and C:\123, set the path command as follows:

PATH C:\UTIL;C:\WP;C:\123