Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with strpccmd 1

Status
Not open for further replies.

TracyMc

Programmer
Jul 21, 2005
2
US
I am trying to open a PDF of the IFS server and having problems find the right pc command to open adobe. any help would be appreciated.
 
TracyMc,

To start the reader the command (ver 4.0 and 5.0) is ACRORD32.EXE. At least that's the way my PC here at work is set up.

HTH,
MdnghtPgmr
 
All you really have to do is specify the full path to the .PDF. Here is how I open a .PDF from a CL program:

Code:
             PGM                                                       
             DCL        VAR(&CALL) TYPE(*CHAR) LEN(123) VALUE(' ')     
             DCL        VAR(&WEBSITE) TYPE(*CHAR) LEN(89) +            
                          VALUE('C:\Documents and +                    
                          Settings\flapeyre\My Documents\whatever.pdf')
             STRPCO                                                    
             MONMSG     MSGID(CPF0000 IWS0000)                         
             CHGVAR     VAR(&CALL) VALUE('rundll32 +                   
                          url.dll,FileProtocolHandler' *BCAT &WEBSITE) 
             STRPCCMD   PCCMD(&CALL) PAUSE(*NO)                        
             MONMSG     MSGID(CPF0000)                                 
             ENDPGM

You can change this to accept a parameter fow whatever URL or file name associated with a program that you want.

Me transmitte sursum, Caledoni!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top