UDmp2Txt (processing hundreds of user dumps)

UDmp2Txt (processing hundreds of user dumps)

Postby VDO » Thu Dec 28, 2006 9:56 pm

Blog: http://www.dumpanalysis.org/blog/index. ... ser-dumps/

WinDbg script:

Code: Select all
$$
$$ UDmp2Txt: Dump information from user dump into log
$$
.logopen /d
!analyze -v
!locks
~*kv
lmv
.logclose
$$
$$ UDmp2Txt: End of File
$$


Sample VBScript to iterate through dump files, load them into WinDbg and apply custom WinDbg script:

Code: Select all
'
' UDumps2Txt.vbs
'
Set fso = CreateObject("Scripting.FileSystemObject")
Set Folder = fso.GetFolder(".")
Set Files = Folder.Files
Set WshShell = CreateObject("WScript.Shell")
For Each File In Files
  Set oExec = WshShell.Exec("C:\Program Files\Debugging Tools for Windows\WinDbg.exe -y ""srv*c:\mss*http://msdl.microsoft.com/download/symbols"" -z " + File.Name + " -c ""$$><c:\scripts\UDmp2Txt.txt;q"" -Q -QS -QY –QSY")
  Do While oExec.Status = 0
     WScript.Sleep 1000
  Loop
Next
'
' UDumps2Txt.vbs: End of File
'


Command line:

Code: Select all
С:\UserDumps>cscript /nologo c:\scripts\UDumps2Txt.vbs


You can also use CDB instead of WinDbg.
VDO
Site Admin
 
Posts: 549
Joined: Mon May 01, 2006 10:34 am
Location: Dublin, Ireland

Return to Tools

Who is online

Users browsing this forum: No registered users and 3 guests

cron