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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"booting" a user out

Status
Not open for further replies.

Yazster

Programmer
Sep 20, 2000
175
CA
Hi everyone,

I have an application that creates an MS-Excel file and saves it to a specific location. Problem is, sometimes a user may be on a file that I'm trying to replace or the file may be locked for whatever reason.

Is there a systematic what of determining who is using a particular file? Is it possible to disconnect this user from the file?

Any help would be greatly appreciated.

Thanks,
Yazster
 
You could open it and see if it opens as read only. If so, someone else has ownership. If not, close and replace the file.
 
yes, but I could also just save the file, if I get an error, the file was in use.

This part is fine, the thing is, when the file IS in use, is there any way to find out who is using it?
 
That's going to depend on what type of security is running on the system. If it's Novell, check with them, it may be possible. if it's NT, I don't believe you can do what you want. The best maybe is try to find out who is on a file and send them an alert. Check with a network system administrator to see if this is even possible.
 
We're using NT. I thought there may have been a way of finding out who was using the file.

Thanks for your help everyone.

Yazster.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top