Tech Tips / Windows NT / Disk and File Management
Sometimes a file bearing a name that makes it difficult to delete shows up on a disk. The problem could be an illegal character or an invalid filename, such as LPT0, NUL, or CON. When you try to delete such a file an error message tells you that the filename is illegal or the system cannot find the file.
When this happens, try using a Fully Qualified Universal Naming Convention filename at a command prompt. Here's the syntax:
del \\.\drive:\path\filename
For example, if the file LPT0 were on drive C in the Windows\System32 directory, you'd enter the command as follows:
del \\.\C:\Windows\System32\LPT0
There - now your problem file is gone for good!
If you're an experienced IT professional and would like to share your expertise with other Setup32.com readers, why not submit a new tip to our Tech Tips area?
Certification Links