There are two error messages that can be caused by incorrectly setting
Path not found
Too many parameters - X
(Error occurred in the environment variable)
DIRCMD allows you to "program" the DIR command. DIRCMD is an MS-DOS
environment variable and can be set from the command line or the
AUTOEXEC.BAT file. However, because it is a true environment variable, it
can also be set to any ASCII string. All subsequent DIR commands will
reference DIRCMD until reset or changed. If DIRCMD is improperly set, it
can result in "odd" effects or error messages.
The following are examples of errors caused by incorrectly setting
Example 1: set DIRCMD=\O\L
The use of backslashes instead of forward slashes will typically display
the "Path not found" error message because MS-DOS searches for files in the
"L" subdirectory under the "O" subdirectory.
Example 2: set DIRCMD=O;L
MS-DOS will interpret "O" and "L" to be filenames. In addition, if file
"O" is not found, MS-DOS will look at the "L" entry and give the following
Too many parameters - L
(Error occurred in environment variable)
In both cases, the files in the current directory will not be listed.
This behavior continues until DIRCMD is reset.