(view source code of videorom.bat as plain text)
@ECHO OFF
:: For Windows NT 4/2000/XP onlyIF NOT [%OS%]==[Windows_NT] GOTO Syntax
:: No command line parameters required, "/2nd" is for internal use onlyIF NOT [%1]==[] IF NOT [%1]==[/2nd] GOTO Syntax
:: OK, let's goSETLOCAL
IF [%1]==[/2nd] (
:: DEBUG commands, to be piped to DEBUG.EXEFOR %%A IN ("d C000:0040" "d C000:00C0" "q") DO ECHO.%%~A
) ELSE (
SET Info=
:: Recursive call is needed to enable piping screen output to DEBUG.EXEFOR /F "tokens=16* delims= " %%A IN ('^(CMD.EXE /C "%~f0" /2nd 2^>NUL^) ^| DEBUG.EXE ^| FIND "C000:"') DO CALL :Parse "%%B"
):: Remove multiple dotsCALL :StripDots
:: Show result with several blank lines inserted in one single ECHO commandECHO ^
Video adapter ROM manufacturer info:^
^
%Info%
:: DoneENDLOCAL
GOTO:EOF
:AddStr:: Remove quotes and append to existing stringSET Info=%Info%%~1
GOTO:EOF
:Parse:: Remove "unprintable" charactersSET Line=%1
SET Line=%!!|%
SET Line=%Line:<=%
SET Line=%Line:>=%
:: Remove quotes and append to existing stringCALL :AddStr %Line%
GOTO:EOF
:StripDots:: Quit when no multiple dots are leftECHO.%Info% | FIND ".." >NUL
IF ERRORLEVEL 1 GOTO:EOF
:: Remove multiple dotsSET Info=%Info:..=.%
:: RepeatGOTO :StripDots
:SyntaxECHO.
ECHO VideoROM.cmd, Version 3.00 for Windows NT 4 / 2000 / XP
ECHO Reads and displays manufacturer information from your video adapter ROM
ECHO.
ECHO Usage: %~n0
ECHO.
ECHO Written by Rob van der Woude
ECHO http://www.robvanderwoude.com
ECHO Original idea by ComputerHope
ECHO http://www.computerhope.com/rdebug.htm
page last modified: 2025-10-11; loaded in 0.0064 seconds