A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

File in use by other process, how to unuse ?



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old January 4th 17, 11:59 PM posted to alt.windows7.general
Asger Joergensen
external usenet poster
 
Posts: 92
Default File in use by other process, how to unuse ?


Hi

I have several computers (programs) using the same file on a server,
one computer(program) i writing exclusively and the others are reading.
What do I do, if one of my programs terminate with an open handle to
the file, then the file will always be in use and not accessible for
the other computers.

How to deal with such a situation, without restarting all computers ??

Thanks in advance
Best regards
Asger
Ads
  #2  
Old January 5th 17, 12:01 AM posted to alt.windows7.general
Asger Joergensen
external usenet poster
 
Posts: 92
Default File in use by other process, how to unuse ?


Sorry, wrong group!
  #3  
Old January 5th 17, 05:51 AM posted to alt.windows7.general
Nil[_5_]
external usenet poster
 
Posts: 1,731
Default File in use by other process, how to unuse ?

On 04 Jan 2017, "Asger Joergensen" wrote in
alt.windows7.general:

I have several computers (programs) using the same file on a
server, one computer(program) i writing exclusively and the others
are reading. What do I do, if one of my programs terminate with an
open handle to the file, then the file will always be in use and
not accessible for the other computers.

How to deal with such a situation, without restarting all
computers ??


Check out the NET FILE command:

C:\net help file
The syntax of this command is:

NET FILE
[id [/CLOSE]]

NET FILE closes a shared file and removes file locks. When used without
options, it lists the open files on a server. The listing includes the
identification number assigned to an open file, the pathname of the
file, the username, and the number of locks on the file.

This command works only on computers running the Server service.

id Is the identification number of the file.
/CLOSE Closes an open file and removes file locks. Type this command
from the server where the file is shared.
  #4  
Old January 5th 17, 10:00 AM posted to alt.windows7.general
Asger Joergensen
external usenet poster
 
Posts: 92
Default File in use by other process, how to unuse ?

Hi Nil

Nil wrote:

Check out the NET FILE command:

C:\net help file
The syntax of this command is:

NET FILE
[id [/CLOSE]]

NET FILE closes a shared file and removes file locks. When used without
options, it lists the open files on a server. The listing includes the
identification number assigned to an open file, the pathname of the
file, the username, and the number of locks on the file.

This command works only on computers running the Server service.

id Is the identification number of the file.
/CLOSE Closes an open file and removes file locks. Type this command
from the server where the file is shared.


That will come in handy, I'm sure.

Thanks.
Best regards
Asger
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 06:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.