# Tech JournalBack to Tech Journal

### I can't delete a file (in Windows) named 'nul' that I created! How can I?

Some filenames are easy to create, but Windows won't let you delete them: NUL, CON, etc. The easiest solution is to use the \\. syntax when refering to those files. Like so:

ren \\.c:\path\to\file\nul. dummy_namedel dummy_name

Please note the use of the full path to the file.

Lately, I've had to walk someone through the phone with a similiar problem, but now the syntax is \\.\path and not \\.path, like so:

ren \\.\c:\path\to\file\nul. dummy_name

Last updated on 2008-07-31 14:39:10 -0800, by Shalom Craimer

Back to Tech Journal