Article ID: 147015
Article Last Modified on 10/31/2006
@echo off
@echo ------------------------------------------------------------------
@echo This Script Will Expand The Debug Executables ie: DLL'S, EXE's, To
@echo the %2\System32\ Directory Of Your NT Install Directory. It
@echo Will Then Expand All Symbols, IE: *.Dbg To a Tree Created at
@echo \%2\Symbols\acm,com,cpl,dll,drv,exe,scr,sys.
@echo ------------------------------------------------------------------
mode 80,9999
set THISCPU=%PROCESSOR_ARCHITECTURE%
if "%PROCESSOR_ARCHITECTURE%" == "X86" set THISCPU=I386
if "%PROCESSOR_ARCHITECTURE%" == "x86" set THISCPU=I386
if "%1"=="" goto syntax
if "%2"=="" goto syntax
if "%3"=="" goto default
set SYM_PLAT=%3
goto continue
:default
set SYM_PLAT=THISCPU
:continue
if "%1"=="%1\" goto syntax
set CDROMPATH=%1
xcopy /ite %cdrompath%\support\debug\%THISCPU% %2
md %2\system32
expand -r %cdrompath%\support\debug\%THISCPU%\*.* %2\system32\
for %%i in (acm com cpl dll drv exe scr sys) do (
expand -r %cdrompath%\support\debug\%3\symbols\%%i\*.* %2\SYMBOLS\%%i
)
goto end
:SYNTAX
@echo SYNTAX: "expndsym <Windows NT CD (CDROM) Drive Letter> <Destination
Path> [Platform]"
@echo "expndsym F: C:\Winnt Alpha"
:end
Additional query words: debugref
Keywords: kbprb kbprogramming KB147015