system command to copy a file to a path with a space in it

Josh Reader josh.reader at outlook.com
Wed Mar 25 07:24:32 PDT 2015


Thanks to all who replied!  Either of the following methods worked
perfectly:

 

Option 1

-----------

cm = "/bin/cp /reports/state.pdf \"/reports/Josh Reader/josh.pdf\""

system cm

 

Option 2

----------

system "/bin/cp /reports/state.pdf '/reports/Josh Reader/josh.pdf'"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20150325/2c412280/attachment.html>


More information about the Filepro-list mailing list