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(' "\\192.168.9.999\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(' "\\192.168.9.999\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(' "\\192.168.9.999\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(' "\\192.168.9.999\EFILE\Rock ^& Roll.PDF" ')