(view source code of getdevsb.bat as plain text)
@ECHO OFF
ECHO.
IF NOT "%OS%"=="Windows_NT" GOTO Syntax
IF NOT [%1]==[] GOTO Syntax
SETLOCAL
SET SB=
FOR /F "tokens=2 delims=:()" %%A IN ('DEVCON find * ^| FIND /I "Creative Sound Blaster"') DO SET SB=%%A
IF DEFINED SB (
ECHO.%SB%
) ELSE (
ECHO No Creative Sound Blaster installed
)
ENDLOCAL
GOTO:EOF
:Syntax
ECHO GetDevSB.bat, Version 1.00 for Windows NT 4 / 2000 / XP
ECHO Check if a Creative Sound Blaster is installed
ECHO.
ECHO Usage: GETDEVSB
ECHO.
ECHO Written by Rob van der Woude
ECHO http://www.robvanderwoude.com
ECHO.
ECHO Notes: This batch file uses Microsoft's (R) DEVCON utility.
ECHO This utility can be found at http://support.microsoft.com
ECHO by searching for Q311272 in the English Knowledge Base.
ECHO.
ECHO The author nor this site are in any way affiliated with Microsoft (R)
:End
page last modified: 2024-04-16; loaded in 0.0053 seconds