It's by design, and can be avoided with SET SAFETY OFF.
This will overwrite the existing file without the interactive dialog.

Tracy

-----Original Message-----
From: Joe Yoder
Sent: Monday, July 02, 2007 11:41 AM

I need to copy a file from one directory to another.  I use the COPY FILE
<SourceFile> TO <DestinationName> inside the Try/Catch structure.
 
When <SourceFile> does not exist, Catch gets control and all is well.
 
When <DestinationName> does not exist, Catch gets control and all is well.
 
When <DestinationName> already exists, I get an Interactive Message Box
reporting that fact and asking what to do.  Catch does not get control so
there is a problem as this applications needs to run unattended!
 
Does anyone know whether this behavior is by design and if so - why?  Any
workarounds?
 
Thanks - Joe
 



_______________________________________________
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