home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / njbridge.zip / install.cmd < prev    next >
OS/2 REXX Batch file  |  1997-09-25  |  2KB  |  62 lines

  1. /*
  2.  * install.cmd - Install the Netscape/Java1.1 Bridge
  3.  * Arguments: none
  4.  *
  5.  * Copies bridge files to netscape directory.
  6.  * Runs nsjava.cmd to activate bridge.
  7.  */
  8.  
  9. Call RxFuncAdd 'SysSearchPath', 'RexxUtil', 'SysSearchPath'
  10. debug = 0
  11.  
  12. /* Find NETSCAPE install directory */
  13. fspec = SysSearchPath('PATH', 'NETSCAPE.EXE')
  14. If debug Then Say 'netscape.exe =' fspec
  15. If fspec = '' Then Do
  16.         Say 'Could not find NETSCAPE install directory'
  17.         Exit 1
  18. End
  19. nsdir = FileSpec("drive", fspec) || FileSpec("path", fspec)
  20. nsjdir = nsdir || 'JAVA11'
  21. nsdir = Translate(nsdir)
  22. nsjdir = Translate(nsjdir)
  23. If debug Then Say 'nsdir =' nsdir
  24. If debug Then Say 'nsjdir =' nsjdir
  25.  
  26. /* Make netscape java11 directory */
  27. If debug Then Do
  28.         'md' nsjdir '> NUL: 2>&1'
  29. End
  30. Else Do
  31.         '@md' nsjdir '> NUL: 2>&1'
  32. End
  33.  
  34. /* Copy files to netscape directory */
  35. If debug Then Do
  36.         'copy' 'nsjava.cmd' nsdir
  37.         'copy' 'bootdrv.exe' nsdir
  38.         'copy' 'README' nsjdir
  39.         'copy' 'jempcl10.zip' nsjdir
  40.         'copy' 'jempo10.dll' nsjdir
  41.         'copy' 'njibm.dll' nsjdir
  42. End
  43. Else Do
  44.         '@copy' 'nsjava.cmd' nsdir '> NUL: 2>&1'
  45.         '@copy' 'bootdrv.exe' nsdir '> NUL: 2>&1'
  46.         '@copy' 'README' nsdir '> NUL: 2>&1'
  47.         '@copy' 'jempcl10.zip' nsjdir '> NUL: 2>&1'
  48.         '@copy' 'jempo10.dll' nsjdir '> NUL: 2>&1'
  49.         '@copy' 'njibm.dll' nsjdir '> NUL: 2>&1'
  50. End
  51.  
  52. /* Activate the bridge */
  53. if debug Then Do
  54.         'cmd /c "nsjava"'
  55. End
  56. Else Do
  57.         '@cmd /c "nsjava"'
  58. End
  59.  
  60. Exit 0
  61.  
  62.