Skip navigation

JSI Tip 0167 - Can't delete LPT1 and other reserved names?

If you accidentally create a directory or file with an illegal or reserved name, you cannot delete it normally. To delete it, open a command prompt and type:

del \\.\Drive:\directory\filename

Example: del \\.\c:\someplace\lpt1


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish