PeterJackson1986

Member
  • Content count

    7
  • Joined

  • Last visited

Community Reputation

0 Neutral

About PeterJackson1986

  • Birthday

Profile Information

  • OS
    none specified
  1. and that makes perfect sense too: If File.Name = ".dmp" Then ...unless all of your files are called .dmp (no filename at all, just an extension). If your crash dump files have standard names (a filename and an extension) then it'll never even try to start windbg, so no output. Spot on ... Great work mate ... Just got it to work I altered the script to Set fso = CreateObject("Scripting.FileSystemObject") Set Folder = fso.GetFolder("C:\Minidump") Set Files = Folder.Files Set WshShell = CreateObject("WScript.Shell") For Each File In Files Set oExec = WshShell.Exec("C:\Windbg\WinDbg.exe -y ""srv*c:\ms*http://msdl.microsoft.com/download/symbols"" -z " + File.Name + " -c ""$$><c:\scripts\MiniDmp2Txt.txt; q"" -Q -QS -QY -QSY") Do While oExec.Status = 0 WScript.Sleep 1000 Loop Next
  2. Ok got it to work .. No error message .. But no output Set fso = CreateObject("Scripting.FileSystemObject") Set Folder = fso.GetFolder("C:\Minidump") Set Files = Folder.Files Set WshShell = CreateObject("WScript.Shell") For Each File In Files If File.Name = ".dmp" Then Set oExec = WshShell.Exec("C:\Windbg\WinDbg.exe -y ""srv*c:\ms*http://msdl.microsoft.com/download/symbols"" -z " + File.Name + " -c ""$$><c:\scripts\MiniDmp2Txt.txt; q"" -Q -QS -QY -QSY") Do While oExec.Status = 0 WScript.Sleep 1000 Loop End If Next 'END Also created that txt file $$ $$ UDmp2Txt: Dump information from user dump into log $$ .logopen /d !analyze -v !locks ~*kv lmv .logclose $$ $$ UDmp2Txt: End of File $$
  3. Thanks correct. But same error C:\scripts\UDumps2Txt.vbs(9, 35) Microsoft VBScript compilation error: Expected ')' Could you attach the vb script that's working for you? Maybe I can try that one.
  4. Sorry I didn't understand ... What path?
  5. Thanks just added it ' ' 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:Windbg\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 ' Next error "C:\scripts\UDumps2Txt.vbs(9, 35) Microsoft VBScript compilation error: Expected ')'"
  6. Yes I have made sure the Windbg path is correct. If I run command directly in command prompt it works it opens the Windows Debugger and run the script. (Though I want the output to a text file) C:\Program Files\Debugging Tools for Windows\windbg.exe -y "srv*c:\ms*http://msdl.microsoft.com/download/symbols" -z c:\Minidump\Mini013112-03.dmp -c "!analyze -v" -Q -QS -QY -QSY But the reason is someone we i have to run around 20 to 30 dump files so it would be helpful if I can automate the process. That forum no one has posted in that forum since like 2008 so i doubt if anyone would replay.
  7. Hi there, I'm trying to run this script http://www.dumpanalysis.org/forum/viewtopic.php?f=16&t=101 but it's not working. "C:\Minidump\Crashdump.vbs(13, 5) WshShell.Exec: The system cannot find the file specified." I'm not an expert in VBS but I got a lot of crash dump it will be a help if I get this to work. ' ' 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 ' Thanks, PJ