Unable to Delete a Folder(s)
Thread Starter
Joined: Jun 2001
Posts: 1,258
Likes: 0
From: UK
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?
Official PPRuNe Chaplain
Joined: Apr 2001
Posts: 3,498
Likes: 0
From: Witnesham, Suffolk
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.
TheVillagePhotographer.co.uk
Joined: Nov 2004
Posts: 1,078
Likes: 0
From: Cotswolds UK
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
Thread Starter
Joined: Jun 2001
Posts: 1,258
Likes: 0
From: UK
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.
Thread Starter
Joined: Jun 2001
Posts: 1,258
Likes: 0
From: UK
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
Sellby_date Expired
Joined: Jan 2003
Posts: 169
Likes: 0
From: East Anglia
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.
Joined: Jan 2002
Posts: 425
Likes: 0
From: UK
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.
Thread Starter
Joined: Jun 2001
Posts: 1,258
Likes: 0
From: UK
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?
Joined: Aug 2005
Posts: 1,693
Likes: 0
From: fairly close to the colonial capitol
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.
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.
PS if this won't fly - take BST's advice and get Hijack this - excellent tool and entirely legit despite its' name.
PersonalTitle to help support PPRuNe against legal bullying.
Joined: Sep 2005
Posts: 134
Likes: 0
From: France
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?
Joined: Apr 2004
Posts: 373
Likes: 0
From: Civ/HAL/SHY/FYY/PWK/AAS/WAD/AVI/GPT/BZN/BSN/WAD/BAS/FLK/WIT/MND/WAD/WIT/WAD/Civ
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)
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 February 2006 at 16:45.
Sellby_date Expired
Joined: Jan 2003
Posts: 169
Likes: 0
From: East Anglia
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...




