Powered by GeSHi

Source code for getdevlt.bat

(view source code of getdevlt.bat as plain text)

  1. @ECHO OFF
  2. ECHO.
  3.  
  4. IF NOT "%OS%"=="Windows_NT" GOTO Syntax
  5. IF NOT [%1]==[] GOTO Syntax
  6.  
  7. SETLOCAL
  8. SET LT=
  9. FOR /F "tokens=2 delims=:()" %%A IN ('DEVCON find * ^| FIND /I "Logitech" ^| FIND /I "Mouse"') DO SET LT=%%A
  10. IF DEFINED LT (
  11. 	ECHO.%LT%
  12. ) ELSE (
  13. 	ECHO  No Logitech Mouse driver installed
  14. )
  15. ENDLOCAL
  16. GOTO:EOF
  17.  
  18. :Syntax
  19. ECHO GetDevLT.bat,  Version 1.00 for Windows NT 4 / 2000 / XP
  20. ECHO Check if a Logitech Mouse driver is installed
  21. ECHO.
  22. ECHO Usage:  GETDEVLT
  23. ECHO.
  24. ECHO Written by Rob van der Woude
  25. ECHO http://www.robvanderwoude.com
  26. ECHO.
  27. ECHO Notes:  This batch file uses Microsoft's (R) DEVCON utility.
  28. ECHO         This utility can be found at http://support.microsoft.com
  29. ECHO         by searching for Q311272 in the English Knowledge Base.
  30. ECHO.
  31. ECHO         The author nor this site are in any way affiliated with Microsoft (R)
  32.  
  33. :End
  34.