Microsoft KB Archive/72487

= Error Messages Caused by DIRCMD =

Article ID: 72487

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft MS-DOS 5.0 Standard Edition
 * Microsoft MS-DOS 5.0a
 * Microsoft MS-DOS 6.0 Standard Edition
 * Microsoft MS-DOS 6.2 Standard Edition
 * Microsoft MS-DOS 6.21 Standard Edition
 * Microsoft MS-DOS 6.22 Standard Edition

-



This article was previously published under Q72487



SUMMARY
There are two error messages that can be caused by incorrectly setting DIRCMD options:

Path not found

and

Too many parameters - X

(Error occurred in the environment variable)



MORE INFORMATION
DIRCMD allows you to &quot;program&quot; 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 &quot;odd&quot; effects or error messages.

The following are examples of errors caused by incorrectly setting DIRCMD:

Example 1: set DIRCMD=\O\L
The use of backslashes instead of forward slashes will typically display the &quot;Path not found&quot; error message because MS-DOS searches for files in the &quot;L&quot; subdirectory under the &quot;O&quot; subdirectory.

Example 2: set DIRCMD=O;L
MS-DOS will interpret &quot;O&quot; and &quot;L&quot; to be filenames. In addition, if file &quot;O&quot; is not found, MS-DOS will look at the &quot;L&quot; entry and give the following error message:

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.

Additional query words: 6.22 5.00 5.00a 6.00 6.20 6.21

Keywords: KB72487

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.