Microsoft KB Archive/69578

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:58, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DIR .EXT Does Not Produce *.EXT Listing PSS ID Number: Q69578 Article last modified on 07-14-1993 PSS database name: O_MSDOS

4.00 4.01 4.01a

MS-DOS

The information in this article applies to:
- Microsoft MS-DOS operating system versions 4.x

Summary:

The MS-DOS DIR command syntax

dir .ext

does not work correctly in MS-DOS versions 4.x. The command should produce a listing of all files with the extension “.EXT” in the directory , as documented on page 58 of the version 4.x “Microsoft MS-DOS User’s Reference.” Instead, MS-DOS displays the error:

Invalid directory

The simpler version of the command, “DIR .ext”, works correctly, displaying all of the files with an extension of “.EXT” in the current directory.

This command syntax works correctly in all forms under versions of MS-DOS earlier than version 4.0.

More Information:

Just as the DIR command automatically expands “DIR FILE” to "DIR FILE.*“, it should expand”DIR C:.EXT" to “DIR C:*.EXT”.

The following DIR usage variations work correctly under MS-DOS 4.0:

DIR .COM DIR .COM DIR C:.COM

The following DIR usage variations do NOT work correctly under MS-DOS version 4.0; they generate an “Invalid directory” error message:

DIR C:.COM DIR .COM DIR ..COM DIR ...COM

All of the above syntax variations work without error in MS-DOS versions 3.2, 3.21, 3.3, and 3.30a.

Microsoft has confirmed this to be a problem in Microsoft MS-DOS versions 4.0, 4.01, and 4.01a. This problem does not occur in later versions of MS-DOS.

Additional reference words: 4.00 4.01 4.01a noupd

Copyright Microsoft Corporation 1993.