I have searched the internet for the answer but I think I may have
reached the end of the internet without finding the answer

I am using STRPCCMD to display a file in the IFS

STRPCCMD PCCMD(' "\\\EFILE\Rock Roll.PDF" ') Works fine
with a space between Rock Roll

I know that I have to enclose the path within double quotes since the
PDF file name contains a space

STRPCCMD PCCMD(' "\\\EFILE\Rock^&Roll.PDF" ') Works fine
with an ampersand preceded by caret to display Rock&Roll.PDF

I know that the ampersand will cause STRPCCMD to think I am trying to
execute two commands so I need to precede the & with a caret ^

My trouble is when I want both a space and an ampersand between Rock
and Roll Example: Rock & Roll.PDF

STRPCCMD PCCMD(' "\\\EFILE\Rock ^& Roll.PDF" ') Does
not work "\\192.1685.9.999\EFILE\Rock is not recognized as a command

What would the correct formatting be for having a space and an
ampersand in the file name?

I do not want to use the rundll32 method as it takes up too many of my
limited 123 characters constraint

I have been executing this from a command line, I wanted to get this
working on the command line before putting it into CL using variables
and concatenations etc.

Anybody know how I can do this?

STRPCCMD PCCMD(' "\\\EFILE\Rock ^& Roll.PDF" ')




This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].