I'm trying to write a little vbs script that will bring up a browse for file dialog that defaults to the minidump folder where I can select a .dmp file and then launch windbg opening the file. So far I have the following code but, it doesn't work. I get the browse for file and select a .dmp file but, windbg never launches.
Thanks for any help!
[!]The AutoSavers![/!]
Thanks for any help!
Code:
Set objDialog = CreateObject("UserAccounts.CommonDialog")
objDialog.Filter = "All Folders|*.dmp"
objDialog.InitialDir = "C:\Windows\Minidump"
intResult = objDialog.ShowOpen
If intResult = 0 Then
Wscript.Quit
Else
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("cmd /c c:\program files\debugging tools\windbg -y srv*c:\symbols*[URL unfurl="true"]http://msdl.microsoft.com/download/symbols[/URL] -i c:\windows\i386 -z c:\windows\minidump")& intResult,0,True
End If
[!]The AutoSavers![/!]