cindy_winegarden
Sun Dec 04 13:20:02 CST 2005
Just check for the file (If File()) and Erase it if it's there. Then do the
Copy operation.
--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy_winegarden@msn.com www.cindywinegarden.com
Blog:
http://spaces.msn.com/members/cindywinegarden
"Bubba Gump Shrimp" wrote:
> Cindy, as I stated a couple of posts above, we have it working. However, if
> that file is already sitting in the directory, it gives the error and I have
> "set safe off". If I delete the file, then the command works fine.
>
> Advise?
>
> Thanks!
>
> "Cindy Winegarden" <cindy_winegarden@msn.com> wrote in message
> news:6E6C5B31-E201-4A5B-992C-D520B5BCC95B@microsoft.com...
> > Hi Buster,
> >
> > It works ok for me with directory:
> > C:\Work\AdHoc\Surfer\M2
> >
> > And command:
> > COPY TO "C:\WORK\ADHOC\SURFER\M2\INU141" ;
> > TYPE DELIMITED WITH "" WITH CHARACTER "|"
> >
> > Sorry I can't duplicate your problem. My advice is to completely retype
> > the
> > line of code using the address from the address bar in Explorer. Sometimes
> > code acts like there are odd non-printing characters embedded in code, and
> > they go away when the line is retyped.
> >
> >
> > --
> > Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> > cindy_winegarden@msn.com www.cindywinegarden.com
> > Blog:
http://spaces.msn.com/members/cindywinegarden
> >
> >
> > "Bubba Gump Shrimp" wrote:
> >
> >> OK, I can't figure this out. sometimes this line works and sometimes it
> >> won;t, and from the same program. Can someone tell me what's wrong with
> >> it?
> >> I'm using VFP7 and VFP9 and I get the error "invalid path or filename"
> >> but
> >> the path is correct.
> >>
> >> COPY TO "C:\WORK\ADHOC\SURFER\M2\INU141" TYPE DELIMITED WITH "" WITH
> >> CHARACTER "|"
> >>
> >> If I shorten it down and put it in "C:\work" then it works fine.
> >>
> >> Please help!
> >>
> >> Thanks!
> >> Buster
> >>
> >>
> >>
>
>
>