# A 0 byte file is created on desktop

I have a empty folder by the name dev that was somehow created on my Windows7 laptop.It contains a file by the name nul.It has size 0 Bytes and both the folder and the file are hidden and read-only.I would like to know if there is some way by which I can delete the folder and the file.

-
How do you know that it has a file called nul? What did you do to determine this? My educated guess is that if there truly is such a file, it's actually named null. Moreover, what deletion methods have you actually tried? –  JdeBP Jan 20 '12 at 12:34
@JdeBP It is very likely that it is actually called nul seeing as how he can't delete it. nul is a reserved word in the Windows filesystem and can't normally have files by this name. Trying doing mkdir nul and watch what happens. –  SpellingD Oct 23 '12 at 16:51

You can use a freeware called as unlocker to delete undeletable files.

For deleting (and making!) files/folders with Windows reserved names (con,nul, and a few others), you can use cmd.exe and use a UNC longpath like this:
del \\?\C:\Full\Path\To\nul