Command Prompt

I am wondering why many document files created with ~.doc and ~.tmp cannot be deleted even with the command

Del /F /S /A:RH “C:\Documents and Settings\<user>\cal\.tmp" or
Del /F /S /A:RH "C:\Documents and Settings\<user>\cal\
.doc”

does not seem to work. I need to remove this stuff regularly which gets accumulated as i run the application which uses word document. I have tested this command on all kinds of files hidden, readonly… all commands work successfully except those files generated by the third party application. Are there some files which cannot be deleted. They are not system files … i tried /AHS as well.

Any help in command better command is really appreciated.

Cheers

Is it because they might be in use? Just a thought.

Thank you Logic_earth,

I thought the same, but at the point of deleting, Ideally there should be no lock as application is closed. However, when i delete file/s physically i can delete them. That is confusing me… Any ideas…

Thanks in Advance.