2

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.

2
  • 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, 2012 at 12:34
  • 1
    @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, 2012 at 16:51

2 Answers 2

1

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

Download Unlocker for Windows here.

3

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 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .