@if "%_echo%" == "" echo off goto skipusage rem rem Use this command file to copy windbg to your development system. rem :usage echo usage: copydbg CDROM MSTOOLS [ SYMBOLS ] echo. echo For example, if your CDROM is drive e:, your debugging tools are echo in d:\mytools, and your .DBG files are in c:\winnt\symbols, echo type the following: echo. echo copydbg e: d:\mytools c:\winnt\symbols echo. goto done :skipusage setlocal set files=windbg.exe shcv.dll tlloc.dll tlser.dll tlpipe.dll set files=%files% emalp.dll emppc.dll emx86.dll dm.dll set files=%files% dmkdalp.dll dmkdppc.dll dmkdx86.dll set files=%files% eecxxalp.dll eecxxppc.dll eecxxx86.dll set files=%files% symcvt.dll set exefiles=windbg set dllfiles=shcv tlloc tlser tlpipe emalp emppc emx86 symcvt set dllfiles=%dllfiles% dm dmkdalp dmkdppc dmkdx86 eecxxalp eecxxppc eecxxx86 set cpu=%PROCESSOR_ARCHITECTURE% if "%PROCESSOR_ARCHITECTURE%" == "x86" set cpu=i386 if "%1" == "" goto usage if "%2" == "" goto usage if NOT "%4" == "" goto usage if "%3" == "" goto skipsym1 echo x >%3\_windbg_.~x$ if NOT EXIST %3\_windbg_.~x$ goto usage del %3\_windbg_.~x$ :skipsym1 echo x >%2\_windbg_.~x$ if NOT EXIST %2\_windbg_.~x$ goto usage del %2\_windbg_.~x$ if NOT EXIST %1\disk1 goto usage rem rem copy images rem echo Copying debugger image files to %2... for %%i in ( %files% ) do copy %1\%cpu%\%%i %2\%%i >nul if "%3" == "" goto skipsym2 rem rem copy symbols rem echo Copying debugger symbols to %3... md %3\exe 2>nul md %3\dll 2>nul for %%i in ( %exefiles% ) do copy %1\support\debug\%cpu%\symbols\exe\%%i.dbg %3\exe\%%i.dbg >nul for %%i in ( %dllfiles% ) do copy %1\support\debug\%cpu%\symbols\dll\%%i.dbg %3\dll\%%i.dbg >nul :skipsym2 echo Copy completed. :done endlocal