TRouble deleting a file

G

Guest

I am trying to delete a file and kep getting an error "sharing violations,
file is being used by another proces s.."

del /f /q max*.log
maxprmem_full_export2.log
The process cannot access the file because it is being used by another
process.

Probably some process which was using the file got hung. But how do I find
which process is using he file. I am on Windows Server 2000 with Service Pack
4 or higher.
 
P

Pegasus \(MVP\)

Prem Mehrotra said:
I am trying to delete a file and kep getting an error "sharing violations,
file is being used by another proces s.."

del /f /q max*.log
maxprmem_full_export2.log
The process cannot access the file because it is being used by another
process.

Probably some process which was using the file got hung. But how do I find
which process is using he file. I am on Windows Server 2000 with Service Pack
4 or higher.

Try deleting it under a Safe Mode boot.
 
G

Guest

Pardon my ignorance. I am not an administartor for the server, also we cannot
reboot the server. If server was rebooted, I am sure I can delete the file
because process holding will most likely will not be there.

Is there a force mode to delete the file (I tried /f, did not work), and is
there a way to find which process is using the file.
 
D

Dave Patrick

The process holding the lock would need to be killed. Not much a non-admin
can do in this case.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Pardon my ignorance. I am not an administartor for the server, also we
cannot
| reboot the server. If server was rebooted, I am sure I can delete the file
| because process holding will most likely will not be there.
|
| Is there a force mode to delete the file (I tried /f, did not work), and
is
| there a way to find which process is using the file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top