The information in this article applies to:
SUMMARYBecause applications control the policy for creating files in Windows NT or Windows NT Advanced Server, files sometimes are created with illegal or reserved names, such as LPT1 or PRN. It is not obvious how to delete such files using the standard user interface. This article explains how. MORE INFORMATION
NOTE: You must be logged on locally to the Windows NT computer to delete
these files.
You can delete (unlink) these files using a simple, native POSIX application. For example, the Windows NT Resource Kit includes such a tool, Rm.exe. NOTE: POSIX commands case sensitive. Drives and folders are referenced differently than in MS-DOS. Usage assumes Rm.exe is either in the path, or the current folder: rm -d //driveletter/path using forward slashes/filenameFor example, to remove a file or folder named COM1, type the following command: rm -d "//C/Program Files/Bad/COM1"To remove a bad folder and its entire contents, type the following command: rm -R "//C/Program Files/Bad"Another option is to use a syntax that bypasses the normal reserve-word checks altogether. For example, you can possibly delete any file with a command such as: DEL \\.\driveletter:\path\filenameFor example: DEL \\.\c:\somedir\aux Additional query words: 3.10 prodnt CON PRN AUX CLOCK$ NUL COM1 LPT1 LPT2 LPT3 COM2 COM3 COM4
Keywords : kbusage nthowto ntfilesys NTSrvWkst |
Last Reviewed: January 25, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |