Based on my experience with trying to trap errors from a Copy File To 
command, I'm guessing that one copy would succeed and the other user 
would get the Interactive Message Window that states that the file 
already exists and asks what to do.  Only the operating system on the 
server knows which of the two simultanious copy commands got it's 
attention first.  

No one has offered an explanation of why the Try/Catch approach doesn't 
handle this scenario.  Is it possible that the operating system insists 
on handling this itself?

Joe Yoder

On Tuesday, July 03, 2007  8:59 PM, Ken Dibble wrote:
>
>Date: Tue, 03 Jul 2007 20:59:41 -0400
>From: Ken Dibble
>To: [EMAIL PROTECTED]
>Subject: Simultaneous Copying??
>
>Here's an odd question:
>
>Suppose two users on a LAN both try to copy the same (closed) .dbf file
>from one location on a server to the same second location on the server at
>the same time?
>
>Would this generate an error in VFP? If so, what error would it be? I
>assume that's a Windows "sharing violation", but what kind of error, if
>any, would that trigger in VFP on a COPY FILE ... TO ... command?
>
>Thanks in advance for any help.
>
>Ken Dibble
>www.stic-cil.org
>
>
[excessive quoting removed by server]

_______________________________________________
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