Launch IDA Python script from IDC?

812 views
Skip to first unread message

chuc...@gmail.com

unread,
Apr 22, 2010, 4:33:52 PM4/22/10
to idapython
Howdy all,

While looking at the docs, specifically for idc.Eval, it sounds like I
should be able to run an IDA Python command from an IDC script
somehow. Is this true, and if so any advice on how to do it would be
great!

Thanks,
Chuck

--
You received this message because you are subscribed to the Google Groups "idapython" group.
To post to this group, send email to idap...@googlegroups.com.
To unsubscribe from this group, send email to idapython+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/idapython?hl=en.

Sebastian Muniz

unread,
Apr 22, 2010, 6:28:57 PM4/22/10
to idap...@googlegroups.com
I think this should work:

RunPythonStatement("execfile 'c:\pathoffile\script.py'")

Taken from this blog:

http://exploiting.wordpress.com/2010/01/03/tip-how-to-define-a-keyboard-shortcut-for-an-idapython-script/

~cheers, topo

chuc...@gmail.com

unread,
Apr 23, 2010, 9:32:07 AM4/23/10
to idapython
Excellent! That is exactly what I needed, it's working like a champ
now. Thanks!

On Apr 22, 6:28 pm, Sebastian Muniz <sebastianmu...@gmail.com> wrote:
> I think this should work:
>
> RunPythonStatement("execfile 'c:\pathoffile\script.py'")
>
> Taken from this blog:
>
> http://exploiting.wordpress.com/2010/01/03/tip-how-to-define-a-keyboa...
>
>     ~cheers, topo
Reply all
Reply to author
Forward
0 new messages