Unable to Delete a Folder(s)
Thread Starter
Join Date: Jun 2001
Location: UK
Posts: 1,236
Likes: 0
Received 0 Likes
on
0 Posts
Unable to Delete a Folder(s)
The kids have created a folder in which there is another folder in which there is another two folders.
All four folders are said to be 0bytes in size.
The thing is none of them can be deleted.
When I try to delete up pops a message:
Cannot delete <filename>:Cannot find the specified file.
Make sure you specify the correct path and file name.
Anyone with ideas as to how I get rid of them?
All four folders are said to be 0bytes in size.
The thing is none of them can be deleted.
When I try to delete up pops a message:
Cannot delete <filename>:Cannot find the specified file.
Make sure you specify the correct path and file name.
Anyone with ideas as to how I get rid of them?
![dwlpl is offline](https://www.pprune.org/images/statusicon/user_offline.gif)
Official PPRuNe Chaplain
Join Date: Apr 2001
Location: Witnesham, Suffolk
Age: 80
Posts: 3,498
Likes: 0
Received 0 Likes
on
0 Posts
Are they still there after you've restarted the machine? Some file managers will continue to display folders after they've been deleted.
What process are you using to delete them? Normally, Windows Explorer, tab down to them, then click on them and "File" - "Delete" will do the job.
What process are you using to delete them? Normally, Windows Explorer, tab down to them, then click on them and "File" - "Delete" will do the job.
![Keef is offline](https://www.pprune.org/images/statusicon/user_offline.gif)
TheVillagePhotographer.co.uk
Join Date: Nov 2004
Location: Cotswolds UK
Posts: 1,078
Likes: 0
Received 0 Likes
on
0 Posts
If I get this problem - and it isn't that rare - then go to the last subfolder and delete. Then work back up until you get to the folder you originally tried to kill. Delete that one too. Haven't a clue why it should work this way, but it seems to for me...
Conan
Conan
![Conan the Librarian is offline](https://www.pprune.org/images/statusicon/user_offline.gif)
Thread Starter
Join Date: Jun 2001
Location: UK
Posts: 1,236
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by Keef
Are they still there after you've restarted the machine? Some file managers will continue to display folders after they've been deleted.
What process are you using to delete them? Normally, Windows Explorer, tab down to them, then click on them and "File" - "Delete" will do the job.
What process are you using to delete them? Normally, Windows Explorer, tab down to them, then click on them and "File" - "Delete" will do the job.
Either way it won't let me.
![dwlpl is offline](https://www.pprune.org/images/statusicon/user_offline.gif)
Thread Starter
Join Date: Jun 2001
Location: UK
Posts: 1,236
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by Conan the Librarian
If I get this problem - and it isn't that rare - then go to the last subfolder and delete. Then work back up until you get to the folder you originally tried to kill. Delete that one too. Haven't a clue why it should work this way, but it seems to for me...
Conan
Conan
![dwlpl is offline](https://www.pprune.org/images/statusicon/user_offline.gif)
Sellby_date Expired
Join Date: Jan 2003
Location: East Anglia
Age: 83
Posts: 169
Likes: 0
Received 0 Likes
on
0 Posts
see if you can delete it in a DOS window (If you are happy in dos)
Start>Run type "command com" without the quotes, then navigate to the files and delete them.
Type "exit" to get back out.
Start>Run type "command com" without the quotes, then navigate to the files and delete them.
Type "exit" to get back out.
![terryJones is offline](https://www.pprune.org/images/statusicon/user_offline.gif)
Join Date: Jan 2002
Location: UK
Posts: 425
Likes: 0
Received 0 Likes
on
0 Posts
There is a facility in HijackThis: http://www.download.com/HijackThis/3...-10227353.html, under 'Misc Tools' to select and delete on reboot any file that Windows is unable to.
NB:'Misc Tools' may need to be accessed via 'Config' if not immediately obvious; depends on initial window opening on first and subsequent use.
NB:'Misc Tools' may need to be accessed via 'Config' if not immediately obvious; depends on initial window opening on first and subsequent use.
![BLUE SKY THINKER is offline](https://www.pprune.org/images/statusicon/user_offline.gif)
Thread Starter
Join Date: Jun 2001
Location: UK
Posts: 1,236
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by terryJones
see if you can delete it in a DOS window (If you are happy in dos)
Start>Run type "command com" without the quotes, then navigate to the files and delete them.
Type "exit" to get back out.
Start>Run type "command com" without the quotes, then navigate to the files and delete them.
Type "exit" to get back out.
How do you navigate to the Desktop from DOS and then delete the files?
![dwlpl is offline](https://www.pprune.org/images/statusicon/user_offline.gif)
Join Date: Aug 2005
Location: fairly close to the colonial capitol
Age: 56
Posts: 1,693
Likes: 0
Received 0 Likes
on
0 Posts
DWLPL, after you get to the DOS prompt type this:
CD DESKTOP
(changes the working directory)
to find the offending file/folder do a DIR read:
type DIR
You will see a list of the contents of your desktop and might need to scroll around a bit.
Now the fun part:
Type RMDIR /S FOLDERNAME
where foldername is the name of the offending folder. Note that if the Folder name contains spaces enclose the name within quotes.
Example to kill Out damn Folder we would type:
rmdir /S "out damn folder"
Note that each DOS command needs to be followed by the ENTER key to execute.
Good luck !
When you are done type EXIT and hit ENTER.![Thumb](https://www.pprune.org/images/smilies/thumbs.gif)
PS if this won't fly - take BST's advice and get Hijack this - excellent tool and entirely legit despite its' name.
CD DESKTOP
(changes the working directory)
to find the offending file/folder do a DIR read:
type DIR
You will see a list of the contents of your desktop and might need to scroll around a bit.
Now the fun part:
Type RMDIR /S FOLDERNAME
where foldername is the name of the offending folder. Note that if the Folder name contains spaces enclose the name within quotes.
Example to kill Out damn Folder we would type:
rmdir /S "out damn folder"
Note that each DOS command needs to be followed by the ENTER key to execute.
Good luck !
When you are done type EXIT and hit ENTER.
![Thumb](https://www.pprune.org/images/smilies/thumbs.gif)
PS if this won't fly - take BST's advice and get Hijack this - excellent tool and entirely legit despite its' name.
![vapilot2004 is offline](https://www.pprune.org/images/statusicon/user_offline.gif)
PersonalTitle to help support PPRuNe against legal bullying.
Join Date: Sep 2005
Location: France
Posts: 134
Likes: 0
Received 0 Likes
on
0 Posts
First things first...
Before you install anything to do the job, just reboot and then try to delete these files.
The file could simply be locked by a process that is not an application (i.e it has no visual components) so even after you have closed all your applications there is still a program which has a file handle open and blocks explorer from deleteing it.
If you have a cmd window open and explorer open, you can try dragging these folders into the cmd window - this (normally) prompts the cmd window to auto type the full path of this folder. You will then see the 'real' name of this folder (in quotes) and can use the above advice to remove the files in cmd using this path name.
Consider booting into safe mode and deleteing the files.
As they are zero bytes then they take up no space and you could ignore them?
The file could simply be locked by a process that is not an application (i.e it has no visual components) so even after you have closed all your applications there is still a program which has a file handle open and blocks explorer from deleteing it.
If you have a cmd window open and explorer open, you can try dragging these folders into the cmd window - this (normally) prompts the cmd window to auto type the full path of this folder. You will then see the 'real' name of this folder (in quotes) and can use the above advice to remove the files in cmd using this path name.
Consider booting into safe mode and deleteing the files.
As they are zero bytes then they take up no space and you could ignore them?
![tallsandwich is offline](https://www.pprune.org/images/statusicon/user_offline.gif)
Join Date: Apr 2004
Location: Civ/HAL/SHY/FYY/PWK/AAS/WAD/AVI/GPT/BZN/BSN/WAD/BAS/FLK/WIT/MND/WAD/WIT/WAD/Civ
Posts: 373
Likes: 0
Received 0 Likes
on
0 Posts
try these
there are 2 methods I can think of for deleting the folders:
1.
Boot to safe mode (Hold F8 during boot & select Safe Mode) so that minimum drivers/progs are run on bootup
Delete the folders using win explorer (cascading backwards if neccessary)
2.
Boot to DOS (hold F8 during boot & select DOS prompt)
if the folders are named as follows C: \windows\reallylongfoldername\evenlongerfoldername then type the following
cd\windows
cd\really~1 (this is the DOS name for folders using the 8-3
(filename system e.g. filename.ext)
cd\evenlo~1
del *.* (deletes everything from last folder)
cd..
rd\evenlo~1 (deletes the last folder)
del *.* (deletes everything from remaining folder)
cd..
rd\really~1 (deletes the remaining folder)
I hope this works, I'm at work at the moment and am typing this from memory!
************* OOPS! - You solved it while I was typing ***************
1.
Boot to safe mode (Hold F8 during boot & select Safe Mode) so that minimum drivers/progs are run on bootup
Delete the folders using win explorer (cascading backwards if neccessary)
2.
Boot to DOS (hold F8 during boot & select DOS prompt)
if the folders are named as follows C: \windows\reallylongfoldername\evenlongerfoldername then type the following
cd\windows
cd\really~1 (this is the DOS name for folders using the 8-3
(filename system e.g. filename.ext)
cd\evenlo~1
del *.* (deletes everything from last folder)
cd..
rd\evenlo~1 (deletes the last folder)
del *.* (deletes everything from remaining folder)
cd..
rd\really~1 (deletes the remaining folder)
![Thumb](https://www.pprune.org/images/smilies/thumbs.gif)
I hope this works, I'm at work at the moment and am typing this from memory!
************* OOPS! - You solved it while I was typing ***************
Last edited by unclenelli; 19th Feb 2006 at 16:45.
![unclenelli is offline](https://www.pprune.org/images/statusicon/user_offline.gif)
Sellby_date Expired
Join Date: Jan 2003
Location: East Anglia
Age: 83
Posts: 169
Likes: 0
Received 0 Likes
on
0 Posts
dwlpl
Sorry I did not get back to you quickly, other matters apart from PPrune I'm afraid, but still, the idea was right and I am glad to see that vapilot2004 told you anyway.
Powerful tool is DOS...
Edited to spel Matters write...
Sorry I did not get back to you quickly, other matters apart from PPrune I'm afraid, but still, the idea was right and I am glad to see that vapilot2004 told you anyway.
Powerful tool is DOS...
Edited to spel Matters write...
![terryJones is offline](https://www.pprune.org/images/statusicon/user_offline.gif)