home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / l11p06.exe / PCONSOLE.PAT < prev    next >
Text File  |  1992-09-22  |  2KB  |  69 lines

  1. TARGET=C:\NWLITE\SERVER.EXE
  2. LIST
  3.     print "PCONSOLE.PAT - patches $TARGET to turn printer console on or off.\n"
  4. VERIFY
  5.     rem "find out which state the server is currently in"
  6.     vd = search (
  7.         E8 7D 01 EB 08 E8 47 00 EB 03 E8 AC 02 E8 58 06    
  8.     checksum 752 )
  9.  
  10.     ve = search (
  11.         90 90 90 EB 0B E8 47 00 EB 03 E8 AC 02 E8 58 06    
  12.     checksum 79F )
  13.  
  14.     if ve=0 then
  15.         print "  $TARGET is set to display a popup message when\n"
  16.         print "  a printer error is detected.\n"
  17.     else
  18.         print "  $TARGET is set to NOT display a popup message when\n"
  19.         print "  a printer error is detected.\n"
  20.     endif
  21.         
  22. APPLY
  23.     print "\nOptions:\n"
  24.     if ve=0 then
  25.         print "  1. Set server to NOT display popup printer error messages.\n"
  26.     else
  27.         print "  1. Set server to display popup printer error messages.\n"
  28.     endif        
  29.     print "  2. Exit without changing the server.\n"
  30.     print "Type the number (1 or 2) of the option you want:"
  31.     va = getkey
  32.     print "\n\n"
  33.     if va='1' then
  34.         if ve=0 then
  35.             if vd=3472 then
  36.                 patch 3472 ( 90 90 90 xx 0B    checksum 1BB )
  37.                 write
  38.                 print "  SERVER.EXE will NOT display a popup message when a printer\n"
  39.                 print "  error is detected.\n"
  40.                 stop
  41.             else
  42.                 print "  Could not find pattern indicating that SERVER.EXE\n"
  43.                 print "  needs this patch.  Make sure you are using this\n"
  44.                 print "  patch with NetWare Lite SERVER.EXE version 1.1\n"
  45.                 stop
  46.             endif
  47.         else
  48.             if ve=3472 then
  49.                 patch 3472 ( E8 7D 01 xx 08    checksum 16E )
  50.                 write
  51.                 print "  SERVER.EXE will display a popup message when a printer\n"
  52.                 print "  error is detected.\n"
  53.                 stop
  54.             else
  55.                 print "  Could not find pattern indicating that SERVER.EXE\n"
  56.                 print "  needs this patch.  Make sure you are using this\n"
  57.                 print "  patch with NetWare Lite SERVER.EXE version 1.1\n"
  58.                 stop
  59.             endif
  60.         endif
  61.     endif
  62.     if va='2' then
  63.         print "No change was made to $TARGET.\n"
  64.         stop
  65.     endif
  66.     print "Invalid option selected.\n"
  67.     print "No change was made to $TARGET.\n"
  68.     stop
  69.