[THIN] Re: OT: Replacing an open file

  • From: brian.hill@xxxxxxxxx
  • To: thin@xxxxxxxxxxxxx
  • Date: Thu, 1 May 2003 11:05:20 -0400

That's what I thought.  You are correct on INUSE, it flags replacement for
the next reboot.

Brian

-----Original Message-----
From: Mark Lee [mailto:marklee15@xxxxxxxxx]
Sent: Thursday, May 01, 2003 11:07 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: OT: Replacing an open file



A file that is in use cannot be replaced unless it's closed first !  I
suspect inuse.exe makes use of the movefile API call which will try and do a
normal file copy operation first, if that fails it flag's up to the OS to
replace the file at the next system reboot !!!
 
Even a Domain Admin cannot replace a file that is in use !  You must track
down the sources of usage and stop all of them accessing the file before you
can replace it without a reboot....
 
HTH
 
Mark
 
 "Thornton. Brian (IT Solutions)" <Brian.Thornton@xxxxxxxxxxx> wrote:
Brian

Try inuse.exe
http://support.microsoft.com/default.aspx?scid=kb;en-us;228930

If this works let me know, I came across it but have had no reason to use
it.

Would like to know how it works out for you

Brian

-----Original Message-----
From: brian.hill@xxxxxxxxx [mailto:brian.hill@xxxxxxxxx]
Sent: 01 May 2003 15:23
To: thin@xxxxxxxxxxxxx
Subject: [THIN] OT: Replacing an open file



I have a script that runs that is used to update a file on a network share.
I'm running into a problem when this file is being accessed. The
information in the file is read-only, so I don't care if it's open when
replacing the files, except that it halts the script. How can I force the
copy to take place even if the file is open? The creditials being used
doesn't/can't have domain admin rights or admin rights on the server where
that the share is located on. Is this even possible? Thanks in advance.

Brian
********************************************************
This Week's Sponsor - Emergent Online
EOL's Universal Printer new Features include:
Network Printing, Pagestreaming, 2400 DPI.
No Client Software Required!
http://www.go-eol.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm


* ** *** ** * ** *** ** * ** *** ** * 
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. 
Any views or opinions presented are solely those of the author, and do not
necessarily 
represent those of ESB. 
If you have received this email in error please notify the sender. 

Although ESB scans e-mail and attachments for viruses, it does not guarantee

that either are virus-free and accepts no liability for any damage sustained

as a result of viruses. 

* ** *** ** * ** *** ** * ** *** ** *

********************************************************
This Week's Sponsor - Emergent Online
EOL's Universal Printer new Features include:
Network Printing, Pagestreaming, 2400 DPI.
No Client Software Required!
http://www.go-eol.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm



---------------------------------
Yahoo! Plus - For a better Internet experience


********************************************************
This Week's Sponsor - Emergent Online
EOL's Universal Printer new Features include:
Network Printing, Pagestreaming, 2400 DPI.
No Client Software Required!
http://www.go-eol.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
********************************************************
This Week's Sponsor - Emergent Online
EOL's Universal Printer new Features include:
Network Printing, Pagestreaming, 2400 DPI.
No Client Software Required!
http://www.go-eol.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: