You can use GetInputFile() and GetInputFilePath() from idc.py. These functions are wrapper to get_root_filename() and get_input_file_path()
def GetInputFile():
"""
Get input file name
This function returns name of the file being disassembled
"""
return idaapi.get_root_filename()
def GetInputFilePath():
"""
Get input file path
This function returns the full path of the file being disassembled
"""
return idaapi.get_input_file_path()
> stahl: hi everyone,
>
> i searched the sdk but could not find it:
>
> is there a way (function) to get the name of the currently analyzed program?
>
> thank you very much!
Note: Registration is required to post to the forums.