home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 May / W2KPRK.iso / debug.cab / installd.cmd next >
OS/2 REXX Batch file  |  1999-11-04  |  1KB  |  49 lines

  1. @echo off
  2.  
  3. if %1# == /not# goto UNINSTALL
  4. if %1# == /NOT# goto UNINSTALL
  5. if %1# == /Not# goto UNINSTALL
  6. if %1# == not# goto UNINSTALL
  7. if %1# == NOT# goto UNINSTALL
  8. if %1# == Not# goto UNINSTALL
  9.  
  10. if not %1#==# goto USAGE
  11.  
  12. if exist c:\ntdetect.000 goto ALREADY
  13. @echo You must switch to the Resource Kit Directory/Folder to install the debug
  14. @echo version of NTDETECT.COM. Press CTRL-C to exit out of setup or you may 
  15. PAUSE 
  16.  
  17.  
  18. attrib -h -s -r c:\ntdetect.com
  19. copy c:\ntdetect.com c:\ntdetect.000
  20. copy ntdetect.com c:\ntdetect.com
  21. attrib +h +s +r c:\ntdetect.com
  22. echo Debug NTDETECT installed successfully
  23. echo To un install, type INSTALLD /NOT
  24. goto END
  25.  
  26. :ALREADY
  27. echo Debug NTDETECT already installed
  28. echo To un install, type INSTALLD /NOT
  29. goto END
  30.  
  31. :UNINSTALL
  32. if not exist c:\ntdetect.000 goto NOT_INST
  33. attrib -h -s -r c:\ntdetect.com
  34. copy c:\ntdetect.000 c:\ntdetect.com
  35. attrib +h +s +r c:\ntdetect.com
  36. echo Debug NTDETECT has been removed.
  37. erase c:\ntdetect.000
  38. goto END
  39.  
  40. :NOT_INST
  41. echo Can't remove.  Debug NTDETECT not installed!
  42. goto END
  43.  
  44. :USAGE
  45. echo USAGE:
  46. echo INSTALLD [ /NOT ]
  47.  
  48. :END
  49.