This is a lovely XP issue. I never had this in Win 9x and I skipped over ME and 2000.
This happens to me sometimes and it's a matter of finding out what is accessing the file. Did you view it with Media Player or similar before trying to delete it? Did you close the program? Did you try closing Windows Explorer and reopening it and then deleting? Basically, when this happens I run through all the programs that would have a reason to access the file and shut them down and then I delete the file. Normally, is this case with a media file, your media player is what is keeping you from deleting the file, in my experience.
Open regedit and go to:
Delete the value you find there.
This is due to XP (explorer in particular) trying to create a preview
for it. Now because the file is corrupted or incomplete,
it cannot read it properly, hence, it will not release the file.
This prevents explorer from doing this.
As usual, backup the registry key before deleting it.
Give this a go.
Just open NOTEPAD and then click on "OPEN". Navigate to the file in the little Notepad "explorer" window and right click on the .avi file and delete it. Supposedly that's will do it. by allan