Welcome Guest ( Log In | Register )



2 Pages V  < 1 2  
Reply to this topicStart new topic
> Delete Any File On Xp
miCRoSCoPiC^eaRt...
post Oct 26 2005, 11:21 AM
Post #11


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411
myCENTs:84.36



QUOTE(speedy @ Oct 25 2005, 11:58 PM)

Here is a way to delete any file:
Go to Start>>Run>>cmd
Type in the path where the file is located (eg. "cd c:\temp" ), don’t close this window
Press ctrl + alt + del
In processes panel close "Explorer.exe" (you would see that taskbar disappears), dont close the window
In the command screen delete the file ( del filename )
In the task manager click File >> New task >> Explorer.exe
Taskbar reappears and the file deletes.

This is quite a usefull trick.
If anyone know any other easier way to do the same then please share it  biggrin.gif

Speedy
*




Since you brought this up - have you ever noticed that quite often, when you kill the explorer in this way and restart it using New Task a whole bunch of icons disappear from the System Tray - I mean, among the one's that were running prior to explorer shutdown, only about 70% of them are redisplayed. Anybody faced this before ??

This is a good method to release the file-locks and delete them - but sometimes, you'd face some obstinate processes (with corresponding .exe files on disk) - which you'd want to delete. They'd get me stymied completely coz:
1. When I tried to delete the .exe, it would report that the process is running and the file is locked. Hence cannot be deleted.
2. I go to Taskman and close down the process.
3. By the time, I go to delete the process .exe, it had started itself back again and won't let me delete it anymore.. This got me immensely infuriated in many situations.

What you need is a tool that'd KILL the process from memory and delete the file from the disk (in realtime - at the same time). Hence I went out on a hunt and found this tool - which came to extremely good use thereafter, particularly for virulent processes - which'd spawn themselves as soon as you shut them down.

Here's where you get it:
1. http://www.bleepingcomputer.com/files/killbox.php
2. http://www.short-media.com/download.php?d=319

This tool ALSO works for the kind of locked files speedy mentioned. Here's a brief intro:
QUOTE
Pocket KillBox is a program that can be used to get rid of files that stubbornly refuse to allow you to delete them.

Usage Information:

Download this file, extract it, and run the killbox.exe file. When it loads type the full path to the file you would like to delete in the field and press the Delete File button (looks like a red circle with a white X). It will prompt you to reboot, allow it to do so, and hopefully your file will now be deleted.

Source: http://www.bleepingcomputer.com/files/killbox.php


It's a MUST ADDITION to your toolbox. Go grab it NOW smile.gif
Regards,
m^e
Go to the top of the page
 
+Quote Post
abhiram
post Oct 26 2005, 02:14 PM
Post #12


Hedonist at large
Group Icon

Group: Members
Posts: 610
Joined: 30-July 05
From: another realm
Member No.: 7,524



QUOTE
Since you brought this up - have you ever noticed that quite often, when you kill the explorer in this way and restart it using New Task a whole bunch of icons disappear from the System Tray - I mean, among the one's that were running prior to explorer shutdown, only about 70% of them are redisplayed. Anybody faced this before ??


Yea, I come across that all the time. This is a little annoying because, sometimes, you might want to do something with a program running in the systray and you can't access it and when you try to run it from the start menu, it says "another instance runnign in the background, please kill that first and then start a new one". Is there any way to fix this other than killing the processes in the task manager?
Go to the top of the page
 
+Quote Post
tansqrx
post Oct 28 2005, 04:07 AM
Post #13


Super Member
Group Icon

Group: [HOSTED]
Posts: 555
Joined: 25-April 05
Member No.: 4,374
myCENTs:68.76



QUOTE(jipman @ Oct 26 2005, 03:36 AM)
Euh... There's a button to delete the IE history didn't you know? tongue.gif

Anyway, if you can't delete a file which you are supposed to be able to delete, it's in use by something. So what you can do is just close that program (as mentioned above) or insert a line into the autoexec.bat that can be found in your C:\ directory.eg.
CODE

del c:\cant_delete_this.txt


autoexec.bat is a batch file that is executed everytime just before the system is fully boot up (should be already existing in your c drive)
*




Not to get on your case that much but I hope you haven't been visiting any sites that you might be embarrassed for others to see. As it turns out, just by clearing the cache in IE (Tools>Internet Options>Clear History, Delete Cookies, and Delete Files) you are not actually getting rid of all of you history. It’s kind of a dirty little secret by Microsoft. As I wrote this I cleared everything out and then downloaded a utility that will view the cache. Index (History) Reader for Internet Explorer ® 4, 5 or 6 [ http://www.wbaudisch.de/HistoryReader.htm ] was the first one that I found at www.download.com. I ran the program and there were still sites in the history.

The program that I used is one of the quick viewers that anyone can get. I know for a fact that some of the advanced forensic tools that you have to pay big bucks for can ferret out unerased cache very easily and efficiently.

Several files are involved in keeping the cache of Internet Explorer

C:\Documents and Settings\<username>\Cookies\index.dat
C:\Documents and Settings\<username>\Local Settings\History\History.IE5\index.dat
C:\Documents and Settings\<username>\Local Settings\History\History.IE5 \MSHistXXXXXXXXXXX\index.dat
C:\Documents and Settings\<username>\Local Settings\Temporary Internet Files\Content.IE5\index.dat
C:\Documents and Settings\<username>\UserData\index.dat

Any of the above files can hold site information and you will notice that if you open Windows Explorer and go to C:\Documents and Settings\<username>\Local Settings\History\ there will be no files but a special display with the timeframe of cached files. Furthermore even if you open a DOS windows and browse to this location you will not see any files. Apparently if a file is marked as system, archive, and hidden you will not be able to see it on the OS no matter what. I had to write my own VB.NET program to list the files and subdirectories. After locating the files the very hard way I tried to delete them only to find out that they were in use by IE, even when IE was not in use. All the index.dat files are in use from the time Windows start will the time Windows shuts down. The only way that I have found thus far to remove them is to get special third-party software that will delete them before Windows full starts. Another approach is to boot into safe mode and then delete them.

When I asked earlier if this also worked on IE cache this is what I meant.

References:
http://www.acesoft.net/delete_index.dat_files.htm
http://browsertools.net/IE-Privacy-Keeper/index-dat.html
http://www.milincorporated.com/a_indexdat.html
http://www.wbaudisch.de/HistoryReader.htm
Go to the top of the page
 
+Quote Post
twitch
post Oct 28 2005, 05:49 PM
Post #14


Veteran Nut
Group Icon

Group: Members
Posts: 527
Joined: 4-October 05
From: UK
Member No.: 8,895



If any of you want to clear your tracks totally (I do this once a month), then use CCLeaner. The latest releases are swines to install. They seem to have some vendeter against being used <.< Anyway, when I used it last, it removed 185MB of Adobe History, IE files and such that were untouched by anything else. And that is after me formatting the hard drive.

Why is it, that so many people can delete their temporary files and not suffer, yet when I do it, my whole system seems to get cleared out. I am having no luck. Perhaps I should give in now.
Go to the top of the page
 
+Quote Post
tansqrx
post Oct 31 2005, 04:54 AM
Post #15


Super Member
Group Icon

Group: [HOSTED]
Posts: 555
Joined: 25-April 05
Member No.: 4,374
myCENTs:68.76



Never give in!!!
Go to the top of the page
 
+Quote Post
JUDGE_RELIC
post Jan 2 2006, 05:15 PM
Post #16


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 44
Joined: 2-January 06
Member No.: 10,423



I would have a "backup" ready just incase. Unless you know what you are deleting, this delteing process (altho effective) can cause some headaches
Go to the top of the page
 
+Quote Post
iGuest
post Nov 1 2007, 11:42 PM
Post #17


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



I tried deleting a corrupted avi file by this method but it didn't happen.
please suggest other way?

-nikhil
Go to the top of the page
 
+Quote Post
tansqrx
post Nov 13 2007, 09:30 PM
Post #18


Super Member
Group Icon

Group: [HOSTED]
Posts: 555
Joined: 25-April 05
Member No.: 4,374
myCENTs:68.76



You might want to check out the tool FileMon from SysInternals (http://www.microsoft.com/technet/sysinternals/FileAndDisk/Filemon.mspx). It shows every file that is open on your system and which program that has it open. I sometimes can’t delete a file that is still open because I don’t know which program is still using it. It is often the case that the program in question failed to properly shutdown or crashed and thus never released the file handle. If all else fails I simply reboot and all the handles are released.
Go to the top of the page
 
+Quote Post
ethergeek
post Nov 14 2007, 08:18 PM
Post #19


Premium Member
Group Icon

Group: [HOSTED]
Posts: 393
Joined: 9-March 07
From: Tucson, AZ
Member No.: 20,794



Just download and install unlocker. It's a right-click item that lets you close file handles and then optionally delete, rename, or move the file.

http://ccollomb.free.fr/unlocker/
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How To Increase Windows Shutdown Speed(40)
  2. Restore Windows File And Folder Protection(5)
  3. How To Delete Files And Folders Directly(10)
  4. How Can I Delete Old Files In Windows Xp ?(22)
  5. Problem Deleting Empty Folder In Win XP(13)
  6. Can't Copy A File During New Windows Install...(10)
  7. Deleting A Corrupt File(26)
  8. Need Help Urgently (missing Or Corrupt Hal.dll File).(6)
  9. How To Delete A Service(10)
  10. Messed Up My Boot.ini File With Vista...(13)
  11. Major Flaw Found In .ani File Through All Major Ms Operating Systems(2)
  12. Q: How Can I Delete Installation Entries?(8)
  13. Re-ordering Welcome Screen & Moving Heavily Fragmented File(1)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 09:38 PM