>I am creating files using SET DEVICE TO PRINT and SET PRINTER TO filename -
>(ok actually I am using SET(24 ) ect as I can understand the code better!)
Although I generally prefer manifest constants (the longer the better
<g>) I agree that in the SET(_SET_PRINTER) case the choice of name for
the constant isn't exactly crystal clear.
>However on Win98 with 2003 Server the files are occasionally held open
>despite me closing them XP WS is fine all the time.
>I force a close by SETting to a dummy name
>Any ideas ? Is it a client setting in WIndows?
The server keeps the file open for a while no matter what you do from
the Clipper end. The idea is that it will be accessible quicker if you
need to open it again. That is fine with files that the same user
opens again to continue reading or writing but causes problems in a
file sharing environment.
There is a registry setting, called CachedOpenLimit, that you can
change to make the server close the file immediately. The easiest way
to do that is to visit Nick Ramsay's NT Networking page at
and download the reg files for server and workstation. They also take
care of a few additional registry settings that can cause problems for
Clipper applications. Remember to reboot after applying them.
klas dot engwall at engwall dot com
Spammers, please use this address :-) mailto:email@example.com