home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / network / autopi.zip / AUTO.BAT < prev    next >
DOS Batch File  |  1992-03-20  |  1KB  |  39 lines

  1. echo off
  2. REM Copyright (c) 1990-1992. Pilott Systems, Anchorage, AK.  All Rights Reserved.
  3. if '%1'=='/?' goto SYNTAX
  4. if '%1'=='?' goto SYNTAX
  5. if '%1'=='/1' CALL %APS% %APC%
  6. if '%1'=='/2' %COMSPEC%/C %APS% %APC%
  7. if '%APC%'=='EXIT' goto DONE
  8. %0PILT /? MAIN /E:160 /R:%APC% /T"Main Menu" %1 %2 %3 %4 %5 %6 %7 %8 %9
  9. if errorlevel 255 %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
  10. if '%1'=='/1' SHIFT
  11. if '%1'=='/2' SHIFT
  12. if errorlevel 252 %APP%\AUTO /2 %1 %2 %3 %4 %5 %6 %7 %8 %9
  13. if errorlevel 251 %APP%\AUTO /1 %1 %2 %3 %4 %5 %6 %7 %8 %9
  14. goto DONE
  15. :SYNTAX
  16. cls
  17. echo The AutoPilott Menu System
  18. echo.
  19. echo You may use the following parameters:
  20. echo.
  21. echo /? - Display this syntax screen
  22. echo /M - Maintenance Mode
  23. echo /U - Force User Mode
  24. echo /P"password" - Protect the user from exiting to DOS
  25. echo /T"title" - Set the title
  26. echo menuSet - Load an optional menu set
  27. echo.
  28. echo Use a space between AUTO and any parameters.
  29. echo.
  30. echo    Incorrect:  AUTO/M
  31. echo    Correct:    AUTO /M
  32. :DONE
  33. set APC=
  34. set APS=
  35. set APP=
  36. echo.
  37. echo Type AUTO and press ENTER to restart the AutoPilott Menu System.
  38. echo.
  39.