> > Doesn't copying a flat file imply a lock on that file until the copying is
> > done? Or am I completely misunderstanding how this works?
> >
>At a guess VFP only concerns itself with locking for database
>operations. What you're doing with copy file is essentially telling the
>OS to copy it. So if the file didn't exist in the target location to
>begin with then whichever workstation gets in first in the queue will
>begin copying, and the other will lock out until the first is finished.
>I'm not sure that SET SAFETY affects COPY FILE at all. So it's a 'last
>in wins' situation.

Thanks, Alan.

I don't get a "Do you want to overwrite?" message when SAFETY is OFF but I 
do when it's ON.

The reason I raised the question is that my system automatically backs up 
the data to a different location after the last user logs off. But it 
occurred to me that two users could log off nearly simultaneously, and 
therefore might start the automatic backup at essentially the same time. It 
takes long enough, and some files are big enough, that they could both be 
trying to copy the same file at the same time. I can't easily test that 
proposition, but I thought it might throw some kind of untrappable error.

Ken Dibble
www.stic-cil.org



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to