MS-DOS Reserved Words in File Manager's File Search Command

Last reviewed: November 23, 1994
Article ID: Q71843
The information in this article applies to:
  • Microsoft Windows operating system versions 3.0, 3.0a, 3.1, 3.11

SUMMARY

If you search for a file in the Microsoft Windows File Manager program, using some MS-DOS reserved words with the File Search command, File Manager finds those reserved word in all directories because MS-DOS character devices are defined as files in all directories. This is standard MS-DOS behavior.

Examples of MS-DOS reserved words are:

   CON   COM1 - COM4
   PRN   AUX    LPT1

MORE INFORMATION

MS-DOS reserved words identify devices attached to the system. The following describes some of these devices:

   CON - The display monitor
   PRN - Default value is LPT1; this value can be changed
   AUX - Serial port 1 (COM1)

Although File Manager finds reserved words, if an attempt is made to delete any of these reserved words by choosing Delete from the File menu, you will receive the following error message for each reserved word, respectively:

   Using Windows 3.1
   ------------------

   Cannot delete <path\reserved word>; access denied.

   Using Windows 3.0
   -----------------

   Cannot delete <path\reserved word> Cannot find file; check to
   ensure the path and filename are correct.

An exception is "CON," which produces a different error message:

   Cannot delete C:\CON: Access denied


KBCategory: kbtool kbdisplay kbenv kberrmsg
KBSubcategory: win30 win31
Additional reference words: 3.00 3.00a 3.0 3.1 3.10 err msg 3.11


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 23, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.