 | Community Moderator with 16,982 posts. | | Join Date: Jun 2002 Location: Cowtown, against my will Experience: PHD -poop handling degree | | Delete undeletable files Have you ever tried to delete an unknown, suspicious or temp file but have been denied? This ususally happens because it is in use or protected. If you are sure it is a junk file and want to get rid of it, try the following, compliments of Daniel Petri of MCSE World: Sometimes you want to delete a file but when you do so an error message pops and tells you it cannot be done. Do successfully delete such a file do the following:
Open a Command Prompt window and leave it open.
Close all open programs.
You now need to close EXPLORER.EXE. The proper way to shutdown Explorer is to raise the "Shut Down Windows" dialog (select "Shut Down..." from the start menu), hold down CTRL+SHIFT+ALT and press the CANCEL button. Explorer will exit cleanly.
Note: The <CTRL+ALT+DEL> at the 'Shut Down Windows' dialog method of closing Explorer is built into Explorer. (It was specifically designed so that developers writing Shell Extensions could get Explorer to release their Shell Extension DLLs while debugging them).
Go back to the Command Prompt window and change to the directory where the undeletable file is located in. At the command prompt type DEL <filename> where <filename> is the file you wish to delete.
Go back to Task Manager, click File, New Task and enter EXPLORER.EXE to restart the GUI shell.
Close Task Manager.
The above is for W2K/XP. You an also delete a nuisance file in W98se by booting into DOS and performing the same operation. For example:
C:\windows> cd\
cd C:\windows\mydocu~1>
C:\windows\mydocu~1> del nuisansefile.txt
__________________ "Respect is not a birthright; it is earned."
"Irony is more humane than its sneering cousin, sarcasm, which is intended to demolish and ridicule..." - Richard Handler | | Distinguished Member with 9,628 posts. | | Join Date: Feb 2003 Location: Myrtle Beach SC (paradise) Experience: Intermediate | | A useful tool for deleteing files where you get a sharing or protection error is the freeware program WhoLockMe. This useful explorer extention will let you know exactly which program has the file you wish to delete locked so that you can terminate the program or the process responsible. http://www.dr-hoiby.com/WhoLockMe/
__________________ 4C6574206D65206B6E6F7720696620796F752063616E207265616420746869732E00
"The first job of a true patriot is to question the Government"
Thomas Jefferson
"Good intentions will always be pleaded for any assumption of power. The Constitution was made to guard the people against the dangers of good intentions. There are men in all ages who mean to govern well, but they mean to govern. They promise to be good masters ... but they mean to be masters. "
Daniel Webster | | Distinguished Member with 2,385 posts. | | Join Date: Nov 2003 Location: Southern California, USA | | And another little jim dandy is MoveOnBoot which is totally free. It places an option on your right-click menu to delete the particular file upon the next boot. You can also open the main program screen and select other things of value.
Since we have no dos in XP, this little utility takes on added value for doing the equivalent of a dos delete. | | Distinguished Member with 2,261 posts. | | Join Date: Jan 2004 Location: Western Canada Experience: Windows Millennium only | | | | | Distinguished Member with 2,385 posts. | | Join Date: Nov 2003 Location: Southern California, USA | | Thanks Ben, I don't know how that could happen. I never make mistakes. | | Senior Member with 573 posts. | | Join Date: Nov 2003 Location: England | | No DOS in XP???
It's here: C:\windows\system32\cmd.exe
At least, it is on my version of XP Pro... | | Senior Member with 259 posts. | | Join Date: Aug 2002 Location: Belgium | | It should be too easy if you can just delete a locked file this way.
There are a lot of situations where you can't delete it not because the file/folder is opened but because it's corrupted or has special characters in the name or you don't have the rights to delete it (on NTFS volumes, which are now very common).
Here is how to gain the rights on a file http://support.microsoft.com/?kbid=308421 http://support.microsoft.com/?kbid=298345
If the name is corrupted, a chkdsk can be the solution.
Another way if the name of the file/folder is too long or contains a special character is to get its short name.
Just open a command line (start -> run -> cmd enter), navigate to the folder and then, type dir /X
You will see both names for each file. Then you can delete a file name "this file is very long" this way
del "this f~1" or
rd "this f~1" /s if it's a folder.
For 9X/ME, moveonboot or CopyLock should do the trick or eventually, a Scandisk for corrupted file names.
I've made a subject on a French forum about the same problems, beware it's in French http://forum.pcastuces.com/sujet.asp?SUJET_ID=2446
__________________ Pierre. | | Senior Member with 361 posts. | | Join Date: Jan 2003 Location: North UK Experience: Intermediate. | | Many thanks Pyritechips.Gotrootdude & Zephyr.
Printed & stored.
Foxfire | | Junior Member with 4 posts. | | Join Date: Jul 2004 Experience: Advanced | | check this out if there is anyone in this world who can delete a file named *.* pls contact me
i have a file in my c:\ whos name is "*.*" without " sign.
take a look at http://www.virtualx.go.ro/Image2.jpg | | Distinguished Member with 54,749 posts. | | Join Date: Oct 2001 Location: *Random People Pleaser***Sacra Experience: Having fun |
19-Jul-2004, 08:39 PM
#10 | angellove,
Welcome to TSG
You should post up in the help forums.
I clicked you like to the image2 but get this...
403 Forbidden
You must supply a local referer to get URL '/Image2.jpg' from this server. | | Distinguished Member with 2,261 posts. | | Join Date: Jan 2004 Location: Western Canada Experience: Windows Millennium only |
19-Jul-2004, 08:47 PM
#11 | Hi angellove,
If I type *.* in Search (Find) my entire c drive shows up. It does the same thing if I type *. It is, as far as I know, a symbol for ALL. I do not know the significance of a file on C:\ with that 'name'.
Wait for a response from those who know.
There is something wrong with your link, by the way.
__________________ Java Runtime Environment Version 5.0 Update 16 see here. And download the latest MVP's Hosts File here. The latest ( 01-Jan-2008) thread ( "For WinME Users Only") selected post summary #7 here. | | Distinguished Member with 54,749 posts. | | Join Date: Oct 2001 Location: *Random People Pleaser***Sacra Experience: Having fun |
19-Jul-2004, 09:03 PM
#12 | That is because it is searching all files.
Type in the *.* with the file type after it and it will look for all of that file type.
Like *.*.txt and *.*.bmp etc. | | Moderator with 36,830 posts. | | Join Date: Aug 2003 Location: Vermont |
19-Jul-2004, 09:04 PM
#13 | | | | Senior Member with 317 posts. | | |
19-Jul-2004, 09:08 PM
#14 | Tony Klein, one of my true heroes in computing, (other than all you guys and gals, that is) once helped me with a very stubborn file...very stubborn. He made this for me.
angellove, if none of the methods mentioned above work for you, you might want to give it a try....only, replace the path to your particular stubborn file
-------------------------------------------------------------------------------------------------------------------
Make a batch file that you have executed by having it run from the
HKLM\RunOnce key.
Paste the following into a blank text document:
cd %UserProfile%
rd /s/q "Local Settings"\"Temporary Internet Files"
Save for example in C: as Clean.cmd.
--------------------------------------------------------------------------------------------
Open Regedit, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
Runonce
Rightclick somewhere in the RIGHT hand pane, and choose new > String Value
Doubleclick it, call it DelTemps and hit Enter.
Doubleclick it to bring up the Edit box, and type this in the Edit data: C:\Clean.cmd.
Click OK.
Of course make sure the path to the location where you saved the batch file is correct.
Reboot, and your TIF folder will be deleted and recreated automatically once.
----------------------------------------------------------------------------------------------------------------- | | Distinguished Member with 54,749 posts. | | Join Date: Oct 2001 Location: *Random People Pleaser***Sacra Experience: Having fun |
19-Jul-2004, 09:11 PM
#15 | | |  THIS THREAD HAS EXPIRED.
Are you having the same problem?
We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.
|
Smart Search
| Find your solution! | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |  WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
| You Are Using: |
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 07:32 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd. | |
|