471,109 Members | 1,278 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,109 software developers and data experts.

Cannot delete X: It is being used by another person or program.

Cannot delete X: It is being used by another person or program. Close any programs that might be using the file and try again.

Of course I have tried closing any programs I know of that may be using the file (used X because the filename does not matter...it is a specific log file name to the application).

I am logged onto a Windows Server 2003 computer that acts as a server for a LAN, but is physically joined to a domain.

The local clients are not on the domain, just the local workgroup.

There is a roaming profile that the server has used (domain user), but even when logged on with a local admin user, I cannot delete this file from the server.

*all applications are closed that should be using it and the related services are stopped.
*The scheduled process should be able to delete this file locally or from any of the clients without human intervention. It works seamlessly everywhere else and is a tried and true application. This is not scheduled in Windows, but the application has an event scheduler that fires the process. The process runs on one of the clients and part of the execution of this process is to delete this log file from the server's shared drive.

I know there is a configuration flaw, but I cannot put my finger on it. Is there a DOS command or a Windows application I can download that will report the "holding" person or program for this log file? That may help me to restirct or allow access where I need to.

Thanks in advance!
Sep 9 '08 #1
2 14652
283 100+
best program for this is 'handles.exe'

Sysinternals Handles program

this will show what has a file open , the other thing to check on a server is that nobody has the file open remotely , to check this use computer management and select 'shared folder' then 'open files'
Sep 9 '08 #2
884 Expert 512MB

Another program (which is as good as Sysinternals HANDLES) is Unlocker.

Sep 10 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Mike Moore | last post: by
27 posts views Thread by fermisoft | last post: by
26 posts views Thread by Martin Jørgensen | last post: by
4 posts views Thread by gerardianlewis | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.