home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / DESKTOP / NAMPRO39.ZIP / NP32D.ZIP / NPD.BAT < prev    next >
DOS Batch File  |  1988-09-15  |  1KB  |  64 lines

  1. echo off
  2. cls
  3. : NP.bat Version: Aug 15 1988
  4.  
  5. : %1 is drive of data files
  6. : %2 is subdirectory of data files
  7. : %3 is drive of program files
  8. :       subdirectory of program files is always \NP
  9.  
  10. : This sets the correct subdirectory for your data drive 
  11. %1
  12. if (%2)==() cd \NP
  13. if NOT (%2)==() cd %2
  14. IF (%3)==() goto :JUMPDATDRV
  15. %3
  16.  
  17. :JUMPDATDRV
  18. IF NOT (%3)==() %3
  19. IF (%3)==() C:
  20.  
  21. cd \np
  22. set >PROMPTER.BAT
  23. if (%1)==(v) goto :RUN
  24. if (%1)==(V) goto :RUN
  25. if not exist %1SUPER.DAT DFRUN SRESTORE %1 %2 %3
  26. if not exist ENV.BAT DFRUN SDXSET 
  27.  
  28. IF NOT (%1)==() set DFPROG=%1\NP
  29. IF (%1)==() set DFPROG=C:\NP
  30.  
  31. if not exist env.bat echo Your ENV.BAT file is missing from the \NP subdirectory. 
  32. if not exist env.bat echo  
  33. if not exist env.bat echo To restart, type:  NP V   then press return.
  34. if not exist env.bat pause
  35. if not exist env.bat goto :EXIT
  36.  
  37. env.bat %1 %2 %3
  38. GOTO :EXIT
  39.  
  40. :RUN
  41. prompt $p$g
  42. set DFPROG=
  43. set DFPATH=
  44. DFRUN SDXMENU %1 %2 %3
  45. GOTO :EXIT
  46.  
  47. :EXIT
  48. if not exist restart goto :EXIT2
  49. rename restart rest
  50. env.bat 
  51.  
  52. :EXIT2
  53. set dfprog=
  54. set dfpath=
  55. CD \
  56. %3
  57. :envset.bat >nul
  58. :erase set.bat
  59.  
  60. echo                     Thank you for using NameProcessor(r)
  61. echo  
  62. echo  
  63. echo   To fire up your NameProcessor(r) again, type in "NP" then press return
  64. ECHO ON