vbscript windbg dump file analysis

 
  1. ' VBScript source code
  2. ' The following WinDbg vbscript example will allow you to recursively search for *.deb files
  3. ' and analyse each one. The script will aso go to msdl.microsoft.com/download/symbols to
  4. ' acquire any needed symbol files.
  5.  
  6. 'START
  7. Set fso = CreateObject("Scripting.FileSystemObject")
  8. Set Folder = fso.GetFolder(".")
  9. Set Files = Folder.Files
  10. Set WshShell = CreateObject("WScript.Shell")
  11. For Each File In Files
  12. If Mid(File.Name, Len(File.Name) -3, 4) = ".dmp" Then
  13. Set oExec = WshShell.Exec("C:\Program Files\Debugging Tools for Windows\WinDbg.exe -y " & _
  14. "srv*c:\ms*http://msdl.microsoft.com/download/symbols" & _
  15. " -z " + File.Name + " -c ""$$><c:\scripts\MiniDmp2Txt.txt; q"" -Q -QS -QY -QSY")
  16. Do While oExec.Status = 0
  17. WScript.Sleep 1000
  18. Loop
  19. End If
  20. Next
  21. 'END