home *** CD-ROM | disk | FTP | other *** search
/ Audio 4.94 - Over 11,000 Files / audio-11000.iso / msdos / sndbords / proaudio / pcmtools / pcmtools.arj / LOADPCM.ARJ / STATPCM.BAT < prev   
DOS Batch File  |  1992-09-01  |  675b  |  34 lines

  1. @echo off
  2. if "%debug%" == "yes"     echo on
  3.  
  4.     :: check the status of pcm.com
  5.     :: a return of 0 is OKAY, 1 or 2 is an error
  6.  
  7.     loadpcm s > nul
  8.     if errorlevel 2     goto noxms
  9.     if errorlevel 1        goto nopcm
  10.     echo PCM and XMS are available!
  11.  
  12.     :: verify that the DMA buffer is not 0000:0000, 0 pars and 0 divs
  13.     loadpcm S > nul
  14.     if errorlevel 1        goto nodma
  15.     echo DMA buffer appears to be set!
  16.     goto quit
  17.  
  18.     :nodma
  19.     echo Error: the DMA buffer does not appear to be set:
  20.     loadpcm S
  21.     goto quit
  22.  
  23.     :nopcm
  24.     echo Error: the TSR does not appear to be loaded.
  25.     goto quit
  26.  
  27.     :noxms
  28.     echo Error: there does not seem to be an XMS handler available.
  29.     goto quit
  30.  
  31.     :quit
  32.  
  33.  
  34.