system command to copy a file to a path with a space in
Boaz Bezborodko
boaz at mirrotek.com
Wed Mar 25 06:02:49 PDT 2015
> Date: Tue, 24 Mar 2015 21:30:40 -0400 From: Fairlight
> <fairlite at fairlite.com> To: filepro-list at lists.celestial.com Subject:
> Re: system command to copy a file to a path with a space in it
> Message-ID: <20150325013040.GC16840 at iglou.com> Content-Type:
> text/plain; charset=us-ascii On Tue, Mar 24, 2015 at 01:27:41PM -0400,
> Josh Reader thus spoke:
>> system "/bin/cp /reports/state.pdf /reports/Josh Reader/josh.pdf"
> cm = "/bin/cp /reports/state.pdf \"/reports/Josh Reader/josh.pdf\""
> system cm
>
> mark->
> -- Audio panton, cogito singularis.
Mark beat me to it. But, to spell it out, you need to enclose the path
with a space in quotation marks within the value passed to the SYSTEM.
Since the quotation mark is used by the SYSTEM command you use a (\") to
enter the quotation into the expression passed to SYSTEM.
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
More information about the Filepro-list
mailing list