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
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
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
Regards,
m^e


