Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to use COPY Windows files names with blanks

How do you use COPY command in FXP with blanks in Windows file names.
I. E. Program Files folder
Thanks
[114 byte] By [m hamby] at [2007-11-10 12:48:56]
# 1 Re: How to use COPY Windows files names with blanks
Have you tried putting quotes around the LFN (ie: COPY FILE "my long
filename.txt" TO "another long name.txt")?

"m hamby" <mhamby@attbi.com> wrote in message
news:3e6e6cec$1@tnews.web.dev-archive.com...
>
> How do you use COPY command in FXP with blanks in Windows file names.
> I. E. Program Files folder
> Thanks
Dan Pollak at 2007-11-11 23:51:28 >
# 2 Re: How to use COPY Windows files names with blanks
If your file names are in variables, you can do it this way:

COPY FILE (cFileSource) TO (cFileDestination)

You use the quotation marks around constant name:

COPY FILE "C:\Program Files\source.txt" TO "C:\Long Folder
Name\destination.txt"

--

Fred
Microsoft Visual FoxPro MVP
Please respond only to the newsgroups so that all may benefit.

m hamby wrote:
> How do you use COPY command in FXP with blanks in Windows file names.
> I. E. Program Files folder
> Thanks

--
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003
Fred Taylor at 2007-11-11 23:52:33 >