home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.yorku.ca 2015 / ftp.cs.yorku.ca.tar / ftp.cs.yorku.ca / pub / drac.EXE / hapinst.bat < prev    next >
DOS Batch File  |  2008-11-20  |  503b  |  36 lines

  1. @SETLOCAL
  2. @echo off
  3.  
  4. ::make sure the start dir is the same as where the batch file locates
  5. SET batchDir=%~dp0
  6. CD /D %batchDir%
  7.  
  8. @IF "%1" == "" GOTO usage
  9. @IF "%1" == "install" GOTO in
  10. @IF "%1" == "uninstall" GOTO unin
  11.  
  12. :in
  13. CD hapi
  14. hapint -k SPHAPIDA5 -p %SystemRoot%\hapint.exe -q
  15. goto end
  16.  
  17. :unin
  18. CD hapi
  19. hapint -k SPHAPIDA5 -r -q
  20. goto end
  21.  
  22.  
  23. @GOTO end
  24.  
  25. :usage
  26. @ECHO Usage:
  27. @ECHO To Install hapinst install
  28. @ECHO To Uninstall hapinst uninstall
  29.  
  30.  
  31. :end
  32. @POPD
  33.  
  34. @ENDLOCAL
  35.  
  36.