I have an NT 4.0 server that shares several directories for read access across the network. I am attempting to write a script that will check for the length of time that a networked user has a file open in one of these directories. At this point in time, I am parsing the output of the DOS 'net sessions' command, but have found several problems with this method. The output of this command reports users being connected to the server even after they have in fact disconnected. The server seems to hold the connection open for a while, even after the access to a file or directory has terminated. The goal of this script is to warn the users after an amount of time to close the files that they have open. These are typically PDF files that reside on the server that the users are viewing locally on their PCs. While they have the files open, the files cannot be deleted or replaced by the server. These files, particularly for tests, are replaced often and when the file is locked by the user, a process that replaces the files hangs up until the user releases the files. I am looking for suggestions on how to find which files are open, what user has the file, and how long the user has had the file open.
Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 <mailto:[EMAIL PROTECTED]> _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
