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 Answers
You can use a freeware called as unlocker to delete undeletable files.
Download Unlocker for Windows here.
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
nul
? What did you do to determine this? My educated guess is that if there truly is such a file, it's actually namednull
. Moreover, what deletion methods have you actually tried?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 doingmkdir nul
and watch what happens.