home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
locins.exe
/
LOCINST1.NNA
< prev
Wrap
Text File
|
1993-04-29
|
3KB
|
103 lines
* DOS App.
*
* LOCINST1.NNA ver1.01 04.29.93
*
* Automated script file used to install Network Navigator
* client software on a local drive. The software had been previously
* installed on a "home" directory on a server.
*
* Assumptions: 1. Users have read access ONLY to their own
* SYSCTL.DCS file.
* 2. There is ONLY one copy of NNLOGIN.COM located
* on the server.
* 3. Users run this script out of their original
* NETNAV directory.
*
* This file will also invoke a keystroke file that will reconfigure
* the users' NetNav configuration files to define a local "receive
* path". Keystroke file is LOCINST1.KSF
*
* First locate the user's NetNav files on the server.
* Map a drive letter to SYS:
MAP L:=SYS:
%ONERROR :NOFILES
%LPATH=SYSCTL.DCS /D=L
*
* Copy the keystroke file to the user's NETNAV path.
%ONERROR :NOCOPY1
NNCPY %RPATH\LOCINST1.KSF %LPATH\
*
* Create a NetNav directory on users' local drive.
%ONERROR :NODIR
NNCHK /C C:\NETNAV
NNCHK /C C:\NETNAV\RECV
*
* Copy NetNav user files to this NetNav directory.
%ONERROR :NOCOPY
NNCPY %LPATH\*.DCS C:\NETNAV
NNCPY %LPATH\*.NET C:\NETNAV
*
* Locate the NNLOGIN.COM utility, for users to use secured login.
%ONERROR :NOLOGIN
%LPATH=NNLOGIN.COM /D=L
*
* Copy the NNLOGIN.COM utility to NetNav local.
%ONERROR :NOCOPLOG
%NNCPY %LPATH\NNLOGIN.COM C:\NETNAV
*
* Check files have been copied.
%ONERROR :NOFILE
%IF EXISTS C:\NETNAV\NNLOGIN.COM
*
*
Add the new environment variable SET NETNAV= to AUTOEXEC.BAT
%ONERROR :NOSET
NNEDT /S C:\NETNAV NETNAV
*
* Delete original user NetNav files on the server.
%ONERROR :NODEL
%LPATH=SYSCTL.DCS /D=L
NNDEL %LPATH\*.DCS /Q
NNDEL %LPATH\*.NET /Q
*
%GOTO STARTKEY
*
:NODEL
%LOGMSG NetNav local installed, but server files not deleted.
*
:STARTKEY
%LOGMSG NetNav files moved successfully to local drive.
%LOGMSG Now invoking keystroke script to config local
%LOGMSG receive path.
%ONERROR :NOKEY
SCHEDRUN LOCINST1
*
%EXIT
*
* Error messages:
*
:NOFILES
%LOGMSG Could not locate NetNav user files.
%EXIT NOPROC
:NOCOPY1
%LOGMSG Could not copy over keystroke file.
:EXIT NOPROC
:NODIR
%LOGMSG Could not create NetNav local directory.
%EXIT NOPROC
:NOCOPY
%LOGMSG Could not copy over NetNav files.
%EXIT NOPROC
:NOLOGIN
%LOGMSG Could not locate NNLOGIN.COM utility.
%EXIT NOPROC
:NOFILE
%LOGMSG All files have not been copied over.
%EXIT NOPROC
:NOSET
%LOGMSG Could not set environment variable
%EXIT NOPROC
:NOKEY
%LOGMSG Netnav installed, but not configured.
%EXIT NOPROC