Having problem getting quotation marks with SYSTEM
Boaz Bezborodko
boaz at mirrotek.com
Tue Nov 15 08:28:46 PST 2011
Mirrotek International, LLC 90 Dayton Avenue Building 1-F Passaic, NJ
07055 Tel: 973-472-1400 x.112 Fax: 973-472-5170
On 11/15/2011 11:25 AM, Kenneth Brody wrote:
> 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?
>
This is Windows (sorry that I forgot to mention that), but I was doing
some additional work and realized that I need to strip out the spaces
anyway. When I try to open the pdf file with a Windows "Start
[filename]" it doesn't work with a space and doesn't work with quotation
marks.
I'm sure there a simple edit I can use to strip out spaces, but I just
get my head around it right now.
(I can get the edit syntax if I spend a bunch of time to grok it, but I
then forget it until a few years later when I might need it again.)
Boaz
More information about the Filepro-list
mailing list