Help and Support

How to Remove Files with Reserved Names in Windows XP

Article ID:315226
Last Review:December 31, 2006
Revision:4.1
This article was previously published under Q315226
For a Microsoft Windows 2000 version of this article, see 120716 (http://support.microsoft.com/kb/120716/EN-US/).

SUMMARY

Because applications control the policy for creating files in Windows, files sometimes are created with illegal or reserved names, such as LPT1 or PRN. This article explains how to delete such files by using the standard user interface.

MORE INFORMATION

You must be logged on locally to the Windows-based computer to delete these files.

If the file was created on a file allocation table (FAT) partition, you may be able to delete the file under MS-DOS by using standard command line utilities (such as DEL) with wildcard (*) characters, for example:
DEL PR?.*

-or-

DEL LPT?.*
These commands do not work on an NTFS file system partition. For this case another option would be to use a syntax that bypasses the normal reserved-word checks altogether. You may be able to delete any file by using a command like this:
DEL \\.\drive letter:\path\file name
For example:
DEL \\.\c:\somedir\aux
If the name in the file system appears as a directory, you may be able to delete any directory by using a command like this:
RD \\.\drive letter:\path\directory name
For example:
RD \\.\c:\somedir\aux

APPLIES TO
Microsoft Windows XP Home Edition
Microsoft Windows XP Professional

Back to the top

Keywords: 
kbinfo kbusage KB315226

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.