Hello civitas,
what you want is called File locking system.
If you're using WinXP Pro, try to install windows 2K or 2003 server on
your new server. Employ an active directory in server with all 5
computer on the network as the clients of the domain.
You could hire engineer to do this, do your self if you can.
finally if Active directory is set, then save files that you want only one
user per time over the network and share it. you do this on your
Active directory server.
Below is a brief of File locking terminology.
File locking in Windows
Program files are automatically locked upon execution, thus preventing
them from being modified or deleted while running. Programs are
automatically notified if an open file is being modified by an
external program. File locking in Windows is referred to as mandatory
locking, since locks are enforced by the operating system.
The Windows locking approach can result in problems where the
operating system or an application crashes without being terminated
properly. This leads to a situation where access is denied to files
even though they do not appear to be in use, because the operating
system or a crashed application still has a lock on the file. The user
will in this case have to terminate a program manually to remove the
lock. This is typically done through the Task Manager utility.
File locking permissions are determined by the sharing mode parameter
in the LockFile function or the CreateFile function used to open
files. This parameter may be either exclusive, shared read and/or
shared write. The ReadDirectoryChangesW function can be used for
notification of external changes to files opened in non exclusive
mode.
Locked files, also known as file handles in Windows, can be explored
with the Process Explorer utility. This utility can also be used to
force-close handles without needing to terminate the application
holding them.
File locking in UNIX
Open files and programs are not automatically locked in UNIX. There
are different kinds of file locking mechanisms available in different
flavours of UNIX and many operating systems support more than one kind
for compatibility. The two most common mechanisms are fcntl and flock.
Although some types of locks can be configured to be mandatory, file
locks under UNIX are by default advisory. This means that cooperating
processes may use locks to coordinate access to a file between
themselves, but programs are also free to ignore locks and access the
file in any way they choose to.
Two kinds of locks are offered: shared locks and exclusive locks. In
the case of fcntl, different kinds of locks may be applied to
different sections (byte ranges) of a file, or else to the whole file.
Shared locks can be acquired by an unlimited number of processes at
the same time, but an exclusive lock can only be acquired by one
process, and cannot coexist with a shared lock. To acquire a shared
lock, a process must wait until there are no processes holding any
exclusive locks. To acquire an exclusive lock, a process must wait
until there are no processes holding either kind of lock.
Shared locks are sometimes called "read locks" and exclusive locks are
sometimes called "write locks". However, because locks on UNIX are
advisory, this isn't enforced. Thus it is possible for a database to
have a concept of "shared writes" vs. "exclusive writes"; for example,
changing a field in place may be permitted under shared access,
whereas garbage-collecting and rewriting the database may require
exclusive access.
This combination of inode usage and non-mandatory locking leads to
great flexibility in accessing files from multiple processes. On the
other hand, the cooperative locking approach can lead to problems when
a process writes to a file without obeying file locks set by other
processes. For this reason, some UNIX and UNIX-like operating systems
support mandatory locking as well.
Best,
Adha |