Ok, so now that we know who has the file opened, how can we force them to release it ?
Specially when the file lives on a remote server and the local holder of the handle is a long dead copy of Outlook.
(System crashed because of some worm and Outlook never released the file handle even after several reboots.)
--
Camcuru
Posted by: Camcuru at May 4, 2004 10:28 AM
Well, a reboot releases ALL file handles, so apparently something is starting on each reboot that is re-accessing the file.
On the server you can, in a command shell, type "NET FILE" to see what's open. Each will have a number, and then you can "NET FILE id /CLOSE" where id is that number, to force the file closed.
Good luck!
Posted by: Leo at May 4, 2004 2:49 PM
Somehow or another it says that one of my movie files is being used by explorer.exe and thats why i cant move/rename/delate it. I've a couple times and virus-scanned with no results. Any ideas?
Posted by: Abel at May 19, 2004 5:40 PM
Even after a reboot? If so, I'm kind of at a loss. It's not referenced in your startup is it? Can you share the specific location and name of the file on your machine, or where it came from?
Posted by: Leo at May 19, 2004 6:01 PM
If you can't move a file even after a reboot because its in use, there is a free utility available from Microsoft that may help. INUSE.exe allows you to schedule a file replace for the next reboot (you could do this yourrself in the registry, but inuse is neater). However, it doesn't seem to provide a way to copy the file before it's renamed. Here's where to find it:
Posted by: Simcha at June 6, 2004 11:54 AM
Abel: I've bumped in to the same problem. The only way I could do it was to first kill explorer.exe process using Task Manager and then rename the movie file using command prompt. After that you can run explorer.exe again.
Posted by: Fugu at June 30, 2004 3:54 AM
Is there any utility to know automatically before shutting down that there are some files in use (as in Windows 98, that the OS shows a warning that there are "connected" users).
Thanks,
Juan Carlos
Posted by: cacona666 at July 12, 2004 8:12 AM
Not off hand. The problem is that there are *always* files in use. By the operating system, if nothing else. If you're worried specifically about files being used on that machine from other machines on the network, you could go into a command shell and type "Net File" to see what's been opened remotely.
Posted by: Leo at July 12, 2004 8:54 AM
What if I'm using a file on a the network (on a remote share) which is locked? How can I tell who has that locked?
Posted by: Bernd Wechner at July 26, 2004 6:44 PM
That was covered in the article. But you *do* need access to the server.
Comments
Read the article that everyone's commenting on.
Subscribe to the RSS Feed for comments on this article.
Ok, so now that we know who has the file opened, how can we force them to release it ?
Posted by: Camcuru at May 4, 2004 10:28 AMSpecially when the file lives on a remote server and the local holder of the handle is a long dead copy of Outlook.
(System crashed because of some worm and Outlook never released the file handle even after several reboots.)
--
Camcuru
Well, a reboot releases ALL file handles, so apparently something is starting on each reboot that is re-accessing the file.
On the server you can, in a command shell, type "NET FILE" to see what's open. Each will have a number, and then you can "NET FILE id /CLOSE" where id is that number, to force the file closed.
Good luck!
Posted by: Leo at May 4, 2004 2:49 PMSomehow or another it says that one of my movie files is being used by explorer.exe and thats why i cant move/rename/delate it. I've a couple times and virus-scanned with no results. Any ideas?
Posted by: Abel at May 19, 2004 5:40 PMEven after a reboot? If so, I'm kind of at a loss. It's not referenced in your startup is it? Can you share the specific location and name of the file on your machine, or where it came from?
Posted by: Leo at May 19, 2004 6:01 PMIf you can't move a file even after a reboot because its in use, there is a free utility available from Microsoft that may help. INUSE.exe allows you to schedule a file replace for the next reboot (you could do this yourrself in the registry, but inuse is neater). However, it doesn't seem to provide a way to copy the file before it's renamed. Here's where to find it:
Posted by: Simcha at June 6, 2004 11:54 AMAbel: I've bumped in to the same problem. The only way I could do it was to first kill explorer.exe process using Task Manager and then rename the movie file using command prompt. After that you can run explorer.exe again.
Posted by: Fugu at June 30, 2004 3:54 AMIs there any utility to know automatically before shutting down that there are some files in use (as in Windows 98, that the OS shows a warning that there are "connected" users).
Thanks,
Posted by: cacona666 at July 12, 2004 8:12 AMJuan Carlos
Not off hand. The problem is that there are *always* files in use. By the operating system, if nothing else. If you're worried specifically about files being used on that machine from other machines on the network, you could go into a command shell and type "Net File" to see what's been opened remotely.
Posted by: Leo at July 12, 2004 8:54 AMWhat if I'm using a file on a the network (on a remote share) which is locked? How can I tell who has that locked?
Posted by: Bernd Wechner at July 26, 2004 6:44 PMThat was covered in the article. But you *do* need access to the server.
Posted by: Leo at July 26, 2004 9:32 PMTo post a comment on "How can I find out who is using a "file in use"?", please return to that article's main page.