set safety off?

rk


-----Original Message-----
From: profoxtech-boun...@leafe.com [mailto:profoxtech-boun...@leafe.com] On 
Behalf Of MB Software Solutions, LLC
Sent: Tuesday, April 06, 2010 5:37 PM
To: profoxt...@leafe.com
Subject: Why would this COPY TO fail if the file already exists?

(VFPSP1)
* lcfile gets set in code above this...and is a valid filename.
copy to (lcFile) Delimited with Tab

This line works as long as there's no file already existing.  If the 
file exists, it throws Error 202 ("Invalid path or filename").

Is there a way to force it to overwrite without me having to check for 
the existence of the file and delete if existing?


-- 
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
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/df1eef11e586a64fb54a97f22a8bd044067af93...@ackbwddqh1.artfact.local
** 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