Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File deletion problem 1

Status
Not open for further replies.

dljohnson69

IS-IT--Management
Oct 15, 2001
46
US
I have an NT 4.0 server that has some .doc files it says are in use (won't let you delete or move), gives sharing violation errors. I have checked in server manager and the files are not in use. Any ideas?

 
Hi,

Yeah I had this before, and finally tracked it down to Opportunistic File Locks, its a reg hack to resolve. The following is from our inhouse KB.

In a NT install you may encounter file locking on files after the users have logged out. This is due to Opportunstic File locking, and this had to be turned off with the following procdure.

On the server that holds the file, run regedit and find the following

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

and add the following

DWORD EnableOpLockForceClose = 1
DWORD EnableOpLocks = 0

Log all users off and now go to a command prompt, and enter the following

NET STOP SERVER

when the service has stopped and put you back to a command prompt.

NET START SERVER

Cheers,

Paul If aint broken, dont try n fix it!!!!!
 
Well thanks for the vote, but did it work?? If aint broken, dont try n fix it!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top