Forums >> IDA Pro >> Saving IDB Files to a Different Directory
Topic created on: July 25, 2006 09:18 CDT by milman.
Hey,
I'm working in batch mode with multiple files, but I want the idb files IDA make to be saved in a different directory, instead of the current directory of those files.
Long time ago IDA used to save the .idb in the current directory which was quite useful. But that is no longer the case.
Now, the only solution I can think of is making a copy of the source file in the directory you want the idb in.
Try save_database() in loader.hpp. According to Ilfak, though this is tagged as "KERNEL ONLY" in the header it is unlikely to change (not a guarantee, of course). I have used it with great success to store the current database (including changes not saved to the "current" IDB, if any) in a different location.
Note that this is not the same as a File, Save As call - the original environment (i.e., IDB path) remains unaffected, which was exactly what I wanted for my purposes.
Note: Registration is required to post to the forums.