Files
yttrium-virtio-gpu/Tools/getpdbinfo.bat
T
Bishara AbuHattoum 41730fe11f NetKVM: A new script tool to extract info from pdb
Script tool to extract info from a pdb symbol file,
 info includes the WPP provider's control GUID,
 enabled flags and level, "getpdbinfo.bat /?" for usage.

Signed-off-by: Bishara AbuHattoum <[email protected]>
2018-01-11 14:27:13 +02:00

38 lines
602 B
Batchfile

@echo off
if "%1"=="/help" goto USAGE
if "%1"=="/?" goto USAGE
if "%1"=="" goto USAGE
if not exist %1 goto ERROR
tracepdb.exe -f %1 -c > NUL
for /F "tokens=* USEBACKQ" %%F in (`findstr /R "guid(\"{.*}\")," %~n1.mof`) do (
set guidline=%%F
)
set guid=%guidline:~7,36%
echo | set /p="%guid%" | clip
echo The provider's control GUID is copied to clipboard!
del %~n1.mof > NUL
del *.tmf > NUL
echo The .tmc file content to help with the enabled flags:
type %guid%.tmc
del %guid%.tmc > NUL
goto END
:USAGE
echo getinfo.bat ^<.pdbfile^>
goto END
:ERROR
echo ERROR: file does not exist.
:END