Why am I getting an error here?
Kenneth Brody
kenbrody at bestweb.net
Thu Jan 24 12:23:46 PST 2008
Quoting GCC Consulting (Thu, 24 Jan 2008 14:46:26 -0500):
>> -----Original Message-----
>> From: filepro-list-
>> bounces+gccconsulting=comcast.net at lists.celestial.com [mailto:filepro-
>> list-bounces+gccconsulting=comcast.net at lists.celestial.com] On Behalf
>> Of Walter Vaughan
[...]
>>
>> Boaz Bezborodko wrote:
>>
>> >Here is the line:
>> >
>> >ac(100,*)="!PDF /f\\server\data\fpro\temp\"&flname{".pdf"
>> >
>> >
>> Because you are escaping the quote after temp with the \, so you are
>> getting three quotes instead of 4
>
> You can replace the windows \ (backslash) with a normal slash /.
>
> ac(100,*)="!PDF /f\\server/data/fpro/temp/"&flname{".pdf"
>
> This will be read properly by the windows os.
It depends on what he's going to do with that value. While Windows and
MS-DOS have always[*] accepted either slash at the kernel/API level, there
are programs that require backslashes in pathnames passed to the in order
for that program to parse the command line properly.
For example, while my copy of "cat" happily accepts either slash, the
command shell itself (either command.com or cmd.exe) will not allow me
to use forward slashes for "type".
However, if it requires backslashes, simply put a space between the
backslash and close quote, and use "{" to squeeze it back out:
ac(100,*) = "!PDF /f\\server\data\fpro\temp\ " { flname { ".pdf"
[*] Yes, "always".
<mode type="pedant">
Well, "always" as in "ever since MS-DOS addedsubdirectories way back in
version 2.0". Since MS-DOS 1.0 didn't have subdirectories, it doesn't
count for this discussion.
</mode>
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list