home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 17 / PCPP17.iso / dos / YENDOR3 / SW.BAT < prev    next >
Encoding:
DOS Batch File  |  1997-08-01  |  763 b   |  35 lines

  1. ECHO OFF
  2. REM Environment varible "SWGAME" is preset to zero
  3. REM Then if a "BLASTER" variable is found, "SWGAMES" is set to one
  4. REM The variable "SWGAMES" is tested and the following is done:
  5. REM   0 - runs game program without loading SBFMDRV
  6. REM   1 - will load sbfmdrv.com from this directory
  7. REM       will run the game program
  8. REM       at exit will unload the SBFMDRV.COM tsr program
  9.  
  10.  
  11. SET SWGAMES=0
  12.  
  13. IF "" == "%BLASTER%" GOTO RUNP
  14. SET SWGAMES=1
  15. SBFMDRV > NUL
  16.  
  17. :RUNP
  18. IF EXIST REGISTER.EXE GOTO REGISTER
  19. IF EXIST SHAREWAR.EXE GOTO SHAREWAR
  20. GOTO END
  21.  
  22. :SHAREWAR
  23. SHAREWAR.EXE %1 %2 %3 %4 %5 %6 /W /B
  24. GOTO END
  25.  
  26. :REGISTER
  27. REGISTER.EXE %1 %2 %3 %4 %5 %6 /W /B
  28.  
  29. :END
  30. IF %SWGAMES% == 0 GOTO EXIT
  31. SBFMDRV /U > NUL
  32.  
  33. :EXIT
  34. SET SWGAMES=
  35.