home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 29 Fixes_o / 29-Fixes_o.zip / ld8260b3.exe / NETGUI.BAT
DOS Batch File  |  1996-06-04  |  1KB  |  58 lines

  1. @echo off
  2.  if not %1.==. if not %1==/T if not %1==/t goto help
  3.  goto IsFullLoaded
  4.  
  5. :help
  6. echo  ╔═════════════════════════════════════╗
  7. echo  ║ Batch file to start the DLS 4.0 GUI ║
  8. echo  ╠═════════════════════════════════════╣
  9. echo  ║ Do not delete or modify this file.  ║
  10. echo  ║ It is created during install and is ║
  11. echo  ║ required to start the GUI.  Text    ║
  12. echo  ║ mode can be started by passing '/t' ║
  13. echo  ║ as a parameter to this batch file.  ║
  14. echo  ╚═════════════════════════════════════╝
  15. goto x_exit
  16.  
  17. :IsFullLoaded
  18.  chkrdr
  19.  if errorlevel 2             goto StartFullRdr
  20.  if errorlevel 1             goto BasicIsLoaded
  21.  if errorlevel 0 if not errorlevel 1 goto start
  22.  goto x_exit
  23.  
  24. :StartFullRdr
  25.  net start full
  26.  if errorlevel 0 if not errorlevel 1 goto start
  27.  goto x_exit
  28.  
  29. :start
  30.  checkxms 2000 x
  31.  if errorlevel 2 goto insufmem
  32.  if errorlevel 1 goto insufmem
  33.  echo Initializing NETGUI...
  34.  dzg4.exe %1    
  35.  if errorlevel 9 goto runapp
  36.  goto end
  37.  
  38. :runapp
  39.  rem **** Make sure it's a 9 ****
  40.  if errorlevel 10 goto end
  41.  mode co80
  42.  call go.bat
  43.  cls
  44.  goto start
  45.  
  46. :BasicIsLoaded
  47.  net help 3652
  48.  goto x_exit
  49.  
  50. :insufmem
  51. echo ERROR:  The DLS GUI requires at least 2M of free extended memory.
  52. goto x_exit
  53.  
  54. :end
  55.  mode co80
  56.  
  57. :x_exit
  58.