home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / acroweb.zip / ACRORUN.CMD next >
OS/2 REXX Batch file  |  1995-05-25  |  2KB  |  48 lines

  1. /**** REXX ********************************************/
  2. /******************************************************/
  3. /****  Create & Run Acrobat for Windows Ojbect    *****/
  4. /****  from WebExplorer as a Viewer               *****/
  5. /****  Remember to Designate a 'mailcap' file     *****/
  6. /****  in EXPLORE.INI, and enter the mime type    *****/
  7. /****  in this file 'image/pdf; [path]\acrorun %s *****/
  8. /******************************************************/
  9.  
  10. call rxfuncadd sysloadfuncs, rexxutil, sysloadfuncs
  11. call sysloadfuncs
  12.  
  13. PARSE ARG PassedArg
  14. IF PassedArg=='' THEN EXIT 
  15.  
  16. /* Make an object in WP_NOWHERE, Updating if exists */
  17. SetupString=""||,
  18. "HELPPANEL=4083;"||,
  19. "DEFAULTVIEW=RUNNING;"||,
  20. "MINWIN=DESKTOP;"||,
  21. "NOPRINT=YES;"||,
  22. "ICONPOS=35 40;"||,
  23. "ASSOCFILTER=.PDF,"||,
  24. ","||,
  25. ";"||,
  26. "EXENAME=C:\ACROREAD\ACROREAD.EXE;"||,
  27. "PROGTYPE=PROG_31_ENHSEAMLESSCOMMON;"||,
  28. "STARTUPDIR=C:\ACROREAD;"||,
  29. "PARAMETERS="||PassedArg||";"||,
  30. "SET KBD_ALTHOME_BYPASS=1;"||,
  31. "SET DPMI_MEMORY_LIMIT=64;"||,
  32. "SET WIN_ATM=1;"||,
  33. "SET VIDEO_SWITCH_NOTIFICATION=1;"||,
  34. "SET VIDEO_8514A_XGA_IOTRAP=0;"||,
  35. "OBJECTID=<WP_PDFReader>;"
  36.  
  37. rc=SysCreateObject("WPProgram",,
  38.                    "Adobe Acrobat",,
  39.                    "<WP_NOWHERE>",,
  40.                     SetupString,,
  41.                    "UpDateIfExists"); 
  42.  
  43. If rc<>1 Then Say "Object: Adobe Acrobat could not be created/updated !"; 
  44. Call SysSetObjectData "<WP_PDFReader>" , "OPEN=DEFAULT"
  45. Say "Press return after viewing the file in Acrobat."
  46. '@pause'
  47.  
  48.