|
Yes I did try ShellExec, and Start.
I found that the problem is that windows is the culprit. It strips off
the bookmark. I also found that it doesn't do this with HTTP:, so I put
the document on the iSeries web server and changed the variable& path
to:
chgvar var(&path)
value('http:\\iseries\root\folder\helptext.html#bmark')
Now it works. It's faster too.
Thanks, Karl
message: 3the
date: Sat, 20 Nov 2010 23:27:36 -0600
from: Scott Klement<midrange-l@xxxxxxxxxxxxxxxx>
subject: Re: STRPCCMD command to open a URL from Client Access Session
Have you tried ShellExec? It might be worth a try.
On 11/19/2010 5:18 PM, Karl Abbott wrote:
I want to put the help text for my application into an HTML page and
store it on the IFS.
The HTML will contain anchor tags (bookmarks) that allow positioning
stripsuser at the appropriate section of the help text.
If I go into a browser and type
file:\\iseries\root\folder\helptext.html#bookmark
<file:///\\iseries\root\folder\helptext.html#bookmark> it works
perfectly.
But when I put this into a CL program using the following code it
page.off the #bmark, which means it always positions to the top of the
PGM
DCL VAR(&CMD) TYPE(*CHAR) LEN(98)
DCL VAR(&path) TYPE(*CHAR) LEN(50)
STRPCO PCTA(*NO)
monmsg cpf0000
chgvar var(&path)
value('file:\\iseries\root\folder\helptext.html#bmark')
chgvar var(&cmd) value('rundll32 url.dll,FileProtocolHandler ' *bcat
&path)
STRPCCMD PCCMD(&cmd) pause(*no)
ENDPGM
Any suggestions?
Thanks, Karl
************************************
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.