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   
Text File  |  1993-04-29  |  3KB  |  103 lines

  1. * DOS App.
  2. *
  3. * LOCINST1.NNA  ver1.01   04.29.93
  4. *
  5. * Automated script file used to install Network Navigator
  6. * client software on a local drive. The software had been previously
  7. * installed on a "home" directory on a server.
  8. *
  9. * Assumptions: 1. Users have read access ONLY to their own
  10. *                 SYSCTL.DCS file.
  11. *              2. There is ONLY one copy of NNLOGIN.COM located
  12. *                 on the server.
  13. *              3. Users run this script out of their original
  14. *                 NETNAV directory.
  15. *
  16. * This file will also invoke a keystroke file that will reconfigure
  17. * the users' NetNav configuration files to define a local "receive
  18. * path". Keystroke file is LOCINST1.KSF
  19. *
  20. * First locate the user's NetNav files on the server.
  21. * Map a drive letter to SYS:
  22. MAP L:=SYS:
  23. %ONERROR :NOFILES
  24. %LPATH=SYSCTL.DCS /D=L
  25. *
  26. * Copy the keystroke file to the user's NETNAV path.
  27. %ONERROR :NOCOPY1
  28. NNCPY %RPATH\LOCINST1.KSF %LPATH\
  29. *
  30. * Create a NetNav directory on users' local drive.
  31. %ONERROR :NODIR
  32. NNCHK /C C:\NETNAV
  33. NNCHK /C C:\NETNAV\RECV
  34. *
  35. * Copy NetNav user files to this NetNav directory.
  36. %ONERROR :NOCOPY
  37. NNCPY %LPATH\*.DCS C:\NETNAV
  38. NNCPY %LPATH\*.NET C:\NETNAV
  39. *
  40. * Locate the NNLOGIN.COM utility, for users to use secured login.
  41. %ONERROR :NOLOGIN
  42. %LPATH=NNLOGIN.COM /D=L
  43. *
  44. * Copy the NNLOGIN.COM utility to NetNav local.
  45. %ONERROR :NOCOPLOG
  46. %NNCPY %LPATH\NNLOGIN.COM C:\NETNAV
  47. *
  48. * Check files have been copied.
  49. %ONERROR :NOFILE
  50. %IF EXISTS C:\NETNAV\NNLOGIN.COM
  51. *
  52. *
  53. Add the new environment variable SET NETNAV= to AUTOEXEC.BAT
  54. %ONERROR :NOSET
  55. NNEDT /S C:\NETNAV NETNAV
  56. *
  57. * Delete original user NetNav files on the server.
  58. %ONERROR :NODEL
  59. %LPATH=SYSCTL.DCS /D=L
  60. NNDEL %LPATH\*.DCS /Q
  61. NNDEL %LPATH\*.NET /Q
  62. *
  63. %GOTO STARTKEY
  64. *
  65. :NODEL
  66. %LOGMSG NetNav local installed, but server files not deleted.
  67. *
  68. :STARTKEY
  69. %LOGMSG NetNav files moved successfully to local drive.
  70. %LOGMSG Now invoking keystroke script to config local
  71. %LOGMSG receive path.
  72. %ONERROR :NOKEY
  73. SCHEDRUN LOCINST1
  74. *
  75. %EXIT
  76. *
  77. * Error messages:
  78. *
  79. :NOFILES
  80. %LOGMSG Could not locate NetNav user files.
  81. %EXIT NOPROC
  82. :NOCOPY1
  83. %LOGMSG Could not copy over keystroke file.
  84. :EXIT NOPROC
  85. :NODIR
  86. %LOGMSG Could not create NetNav local directory.
  87. %EXIT NOPROC
  88. :NOCOPY
  89. %LOGMSG Could not copy over NetNav files.
  90. %EXIT NOPROC
  91. :NOLOGIN
  92. %LOGMSG Could not locate NNLOGIN.COM utility.
  93. %EXIT NOPROC
  94. :NOFILE
  95. %LOGMSG All files have not been copied over.
  96. %EXIT NOPROC
  97. :NOSET
  98. %LOGMSG Could not set environment variable
  99. %EXIT NOPROC
  100. :NOKEY
  101. %LOGMSG Netnav installed, but not configured.
  102. %EXIT NOPROC
  103.