Having problem getting quotation marks with SYSTEM

Kenneth Brody kenbrody at spamcop.net
Tue Nov 15 08:25:11 PST 2011


On 11/15/2011 10:59 AM, Boaz Bezborodko wrote:
[...]
> I input the line by first creating a file with the !PDF as the first
> line by executing a SYSTEM "ECHO..." command.  To put in the quotation
> marks I'm doing
>
> SYSTEM "ECHO !PDF \"/f\\server\data\fpro\temp\ "{[filename]{"\">>
> "&[anotherfilename]
>
> But the line in [anotherfilename] looks like this (without the intended
> quotation marks):
>
> !PDF /f\\server\data\fpro\temp\[filename]
>
> What am I missing?

Assuming that this is Windows (you don't say, but the all-caps "ECHO" and 
the backslashes in the path make me think so), then the above should work.

If it's *nix, however, the shell will "eat" the quotes before passing the 
arguments along to echo.  What command would you use at the shell prompt to 
get the quotes into the file?

-- 
Kenneth Brody


More information about the Filepro-list mailing list