" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#008000" VLINK="004000" ALINK="#00C000">
User menu
CP allows you to create the user menu. When invoking the user menu CP
pops up the list of commands specified by the user in the file CP.MNU. You
can invoke the user menu performing one of the following operations:
1) Select the "User menu" item in the "Other" menu.
2) Press the key [F2].
3) Place the mouse cursor onto the "F2 User menu" line in the prompt panel
and press the left button.
You can select the desired item of the user menu performing one of the
following operations:
1) Select the desired item using the keys [up arrow], [down arrow] and
press [Enter].
2) Press the key indicated in the user menu panel to the left of the item.
3) Place the mouse cursor onto the desired item and press the left button
twice.
After this, CP executes the corresponding commands specified in the
file CP.MNU.
If you invoke the user menu CP is searching for the file CP.MNU in the
current directory. If there is no such file the program addresses the root
directory of the current drive and then the directory where CP resides.
Therefore you may create your own menu for any subdirectory. You may also
create nested user menus and switch from one menu to another.
Writing files for a menu
The file CP.MNU can be edited using the CP built-in editor or any other
editor. Let us describe the structure of the file. Menu files have to have
the following format:
character: the item of the menu
DOS command 1
.
.
DOS command n
caracter: the item of the menu
DOS command
etc.
Two or more lines in the file CP.MNU correspond to each element of the
user menu. The message displayed in the menu is placed at the first position
of the first line. For this message you may specify the key followed by the
colon, for example:
C: calculator
Any alphanumeric can be used as a hot key to select this item. The
lines of the file can contain any DOS command.
CP permits any number of nested child menus. To specify that a menu
item is connected with a child menu rather than with a DOS command, include
an asterisk "*" as a first character of the corresponding field followed
either by the full path to a .MNU submenu or its name. In such a case CP
will look both for the file and for file CP.MNU (extension .MNU can be
omitted in the file's name).
Below is the example of a .MNU file:
1: PTS-DOS MENU
*dos
2: Anti-Virus MENU
*virus
3: PrinTool MENU
*print
4: Screen MENU
*cpscr
5: Calculator
calc