Microsoft KB Archive/65095

MS-DOS 3.30 REPLACE Command Checks Only 255 Files PSS ID Number: Q65095 Article last modified on 07-14-1993 PSS database name: O_MSDOS

3.30 3.30a

MS-DOS

Summary:

The REPLACE command included with the Microsoft MS-DOS Version 3.30 Packaged Product replaces only 255 files if more than 255 files are in the directory to be replaced.

More Information:

REPLACE allows a wildcard filename for the source parameter. If this wildcard filename expands to more than 255 files, only the first 255 files found are copied to the target directory. No error is displayed, but REPLACE displays the following message:

255 file(s) replaced.

To check the number of files that a wildcard filename refers to, use the DIR command with the same wildcard name you intend to use with the REPLACE command. At the end of the directory listing, DIR displays the number of files listed. If this number is greater than 255, you should use multiple REPLACE commands with wildcards that refer to fewer files. Note that even if there are more than 255 files in the source directory, only a few may need to be replaced (or copied) to the destination directory, and that number may be less than 255.

Pages 105-107 of the “Microsoft MS-DOS User’s Reference” version 3.3 documents the syntax and usage of the REPLACE command.

Microsoft has confirmed this to be a problem with MS-DOS version 3.30. This problem does not occur in later versions of MS-DOS.

Additional reference words: 3.3 noupd

Copyright Microsoft Corporation 1993.