Database updates are currently taking place!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Tech Tips & Tricks
Tag Cloud
acer audio bios boot bsod computer connection crash dell display driver drivers dvd error firefox freeze google hard drive hardware install internet keyboard laptop linksys macro malware network networking outlook outlook 2003 outlook 2007 password problem redirect router server slow sound trojan usb video virus vista vpn windows windows 7 windows vista windows xp wireless youtube
Search
Search for:
Tech Support Guy Forums > General Technology > Tech Tips & Tricks >
Delete undeletable files

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
pyritechips's Avatar
pyritechips has a Photo Album
Computer Specs
Community Moderator with 18,106 posts.
 
Join Date: Jun 2002
Location: Cowtown, against my will
Experience: PHD -poop handling degree
07-Jan-2004, 03:00 PM #1
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
__________________
"Language skills are...a tool of conveyance. Absolutely useless if one has nothing intelligent to say." - Buffoon
Join the Canadian Social Club
gotrootdude's Avatar
Computer Specs
Distinguished Member with 9,631 posts.
 
Join Date: Feb 2003
Location: Myrtle Beach SC (paradise)
Experience: Intermediate
07-Jan-2004, 03:22 PM #2
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
zephyr's Avatar
Distinguished Member with 2,385 posts.
 
Join Date: Nov 2003
Location: Southern California, USA
07-Jan-2004, 05:06 PM #3
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.
aarhus2004's Avatar
aarhus2004 has a Photo Album
Computer Specs
Distinguished Member with 2,261 posts.
 
Join Date: Jan 2004
Location: Western Canada
Experience: Windows Millennium only
09-Jan-2004, 08:30 PM #4
Perhaps (certainly!) a failed link there zephyr.

MoveOnBoot:

http://www.webattack.com/get/moveonboot.shtml

or

http://www.softpedia.com/public/cat/13/4/13-4-17.shtml
zephyr's Avatar
Distinguished Member with 2,385 posts.
 
Join Date: Nov 2003
Location: Southern California, USA
09-Jan-2004, 10:12 PM #5
Thanks Ben, I don't know how that could happen. I never make mistakes.
Katzy's Avatar
Senior Member with 573 posts.
 
Join Date: Nov 2003
Location: England
10-Jan-2004, 09:47 AM #6
No DOS in XP???

It's here: C:\windows\system32\cmd.exe

At least, it is on my version of XP Pro...
pgriffet's Avatar
Senior Member with 259 posts.
 
Join Date: Aug 2002
Location: Belgium
10-Jan-2004, 10:23 AM #7
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.
foxfire's Avatar
Senior Member with 364 posts.
 
Join Date: Jan 2003
Location: North UK
Experience: Intermediate.
14-Jan-2004, 02:32 PM #8
Many thanks Pyritechips.Gotrootdude & Zephyr.
Printed & stored.

Foxfire
angellove's Avatar
Junior Member with 4 posts.
 
Join Date: Jul 2004
Experience: Advanced
19-Jul-2004, 07:20 PM #9
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
hewee's Avatar
Distinguished Member with 55,232 posts.
 
Join Date: Oct 2001
Location: *Random People Pleaser***Sacra
Experience: Having fun
19-Jul-2004, 07: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.
aarhus2004's Avatar
aarhus2004 has a Photo Album
Computer Specs
Distinguished Member with 2,261 posts.
 
Join Date: Jan 2004
Location: Western Canada
Experience: Windows Millennium only
19-Jul-2004, 07: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.
hewee's Avatar
Distinguished Member with 55,232 posts.
 
Join Date: Oct 2001
Location: *Random People Pleaser***Sacra
Experience: Having fun
19-Jul-2004, 08: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.
Elvandil's Avatar
Computer Specs
Moderator with 40,618 posts.
 
Join Date: Aug 2003
Location: Vermont
19-Jul-2004, 08:04 PM #13
There's also Dr.Delete:

http://www.dslreports.com/forum/rema...ware~mode=flat

Inuse.exe:

http://download.microsoft.com/downlo...N-US/inuse.exe

Movefile (in the same folder as the program "pendmoves" that reveals processes to be completed on reboot, like the installation of Windows Updates):

http://www.sysinternals.com/files/pendmoves.zip

And the "Remove on reboot" shell extension:

http://www.bjb-inc.com/removeonreboot/setup.exe
__________________
Microsoft MVP
Windows Shell/User
Bold_Fortune's Avatar
Senior Member with 317 posts.
 
Join Date: Jan 2003
19-Jul-2004, 08: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.


-----------------------------------------------------------------------------------------------------------------
hewee's Avatar
Distinguished Member with 55,232 posts.
 
Join Date: Oct 2001
Location: *Random People Pleaser***Sacra
Experience: Having fun
19-Jul-2004, 08:11 PM #15
GiPo@MoveOnBoot 1.9.5 is free and works great.

Look down at the bottom for the free older versions.

http://www.gibinsoft.net/gipoutils/fileutil/index.htm
Closed Thread Bookmark and Share   techguy.org/193280

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.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 01:35 PM.
Copyright © 1996 - 2010 TechGuy, Inc. All rights reserved.
Powered by Cermak Technologies, Inc.