Search code examples
directorywindbgdumppykd

How can I get the path of the dumpfile I've opened in Windbg?


I'm opening dumpfile in Windbg, and I'm writing a PYKD related Python script for working with that dumpfile. Now I'd like to create a file in the directory of that dumpfile, and the name of that file should be based on the dumpfile I've just opened.

In order to do this, I'd simply need to know the path of the dumpfile I've opened, but I don't find the basic Windbg command nor the PYKD command to get this.

How can I get the path of the file, I've opened in Windbg?


Solution

  •  >>> targetSystem().desc
     u'64-bit Kernel bitmap dump: C:\\Users\\User\\AppData\\Local\\Temp\\000030a40_memory.dmp'
    

    desc returns the same string as ||