Re: Copy File
From: Dorian Chalom (DChalom_at_Comcast.net)
Date: 01/22/05
- Previous message: Cindy Winegarden: "Re: Copy File"
- In reply to: Cindy Winegarden: "Re: Copy File"
- Next in thread: Dorian Chalom: "Re: Copy File"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 22 Jan 2005 15:42:40 -0500
Sorry so now you have me totally confused....
What would be the correct most effiecent way for me to do this?
cFile = "C:\EFILE\Proof of Claim.PDF"
cFile2 = "C:\DOCUMENTS AND SETTINGS\DORIAN\MY
DOCUMENTS\DEVELOPMENT\EFILE\Wright, Dayna Elizabeth - 04-12295-jcs\Proof of
Claim.PDF"
COPY FILE cFile TO cFile2
"Cindy Winegarden" <cindy_winegarden@msn.com> wrote in message
news:%23VvmXILAFHA.3820@TK2MSFTNGP11.phx.gbl...
> Hi Dorian,
>
> No. You're mixing the two solutions.
>
> cFile1 and cFile2 are string variables that contain a path and file name -
> something like "c:\My Documents\Visual FoxPro Projects\Test.dbf" and they
> may or may not have spaces in the strings.
>
> For any VFP expression that represents a name such as the X and Y in COPY
> FILE X TO Y you can replace the name with a "name expression" which is a
> string variable that contains a name of some sort. For example it can be a
> simple file name or a path and file name. The "name expression" is
> represented in code with parentheses around the variable, so the result is
> COPY FILE (cFile1) TO (cFile2) .
>
> Using square brackets as you have below would make the contents inside a
> quoted string, since square brackets are an alternative to single and
> double quotes in VFP. So, it would be like saying COPY FILE "(cFile1)" TO
> "(cFile2)", denoting that the file names began and ended with parentheses
> as Fred said.
>
> --
> Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> cindy_winegarden@msn.com www.cindywinegarden.com
>
>
> "Dorian Chalom" <DChalom@Comcast.net> wrote in message
> news:OzqIGwBAFHA.204@TK2MSFTNGP10.phx.gbl...
>> So the syntax of
>> COPY FILE [(cFile)] TO [(cFile2)]
>>
>> would be correct?
>
>>>> "Dorian Chalom" <DChalom@Comcast.net> wrote in message
>>>> news:e9fYpBAAFHA.2192@TK2MSFTNGP14.phx.gbl...
>>>>> COPY FILE [&cFile.] TO [&cFile2.]
>
>
- Previous message: Cindy Winegarden: "Re: Copy File"
- In reply to: Cindy Winegarden: "Re: Copy File"
- Next in thread: Dorian Chalom: "Re: Copy File"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|