home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
NJBRIDGE
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-09-25
|
2KB
|
62 lines
/*
* install.cmd - Install the Netscape/Java1.1 Bridge
* Arguments: none
*
* Copies bridge files to netscape directory.
* Runs nsjava.cmd to activate bridge.
*/
Call RxFuncAdd 'SysSearchPath', 'RexxUtil', 'SysSearchPath'
debug = 0
/* Find NETSCAPE install directory */
fspec = SysSearchPath('PATH', 'NETSCAPE.EXE')
If debug Then Say 'netscape.exe =' fspec
If fspec = '' Then Do
Say 'Could not find NETSCAPE install directory'
Exit 1
End
nsdir = FileSpec("drive", fspec) || FileSpec("path", fspec)
nsjdir = nsdir || 'JAVA11'
nsdir = Translate(nsdir)
nsjdir = Translate(nsjdir)
If debug Then Say 'nsdir =' nsdir
If debug Then Say 'nsjdir =' nsjdir
/* Make netscape java11 directory */
If debug Then Do
'md' nsjdir '> NUL: 2>&1'
End
Else Do
'@md' nsjdir '> NUL: 2>&1'
End
/* Copy files to netscape directory */
If debug Then Do
'copy' 'nsjava.cmd' nsdir
'copy' 'bootdrv.exe' nsdir
'copy' 'README' nsjdir
'copy' 'jempcl10.zip' nsjdir
'copy' 'jempo10.dll' nsjdir
'copy' 'njibm.dll' nsjdir
End
Else Do
'@copy' 'nsjava.cmd' nsdir '> NUL: 2>&1'
'@copy' 'bootdrv.exe' nsdir '> NUL: 2>&1'
'@copy' 'README' nsdir '> NUL: 2>&1'
'@copy' 'jempcl10.zip' nsjdir '> NUL: 2>&1'
'@copy' 'jempo10.dll' nsjdir '> NUL: 2>&1'
'@copy' 'njibm.dll' nsjdir '> NUL: 2>&1'
End
/* Activate the bridge */
if debug Then Do
'cmd /c "nsjava"'
End
Else Do
'@cmd /c "nsjava"'
End
Exit 0