From Ero's IDApython doc, perhaps this will help:
http://dkbza.org/data/Introduction%20to%20IDAPython.pdf<quote>
The switch -OIDAPython:/path/to/python/script.py can be used to tell IDAPython which
script to run. Another switch which might come handy is -A which will instruct IDA to run
in batch mode, not asking anything, just performing the auto-analysis.
With those two options combined it is possible to auto-analyze a binary and run a Py-
thon script to perform some mining. A function which will be usually required is
autoWait() which will instruct the Python script to wait until IDA is done performing the
analysis. It is a good idea to call it in the beginning of any script.
To analyze a bunch of files a command like the following could be entered (if working in
Bash on Linux).
for virus in virus/*.idb; do IDAPYTHON='auto' idal -A -OIDAPython:example5.py $virus; done
It will go through all the .idb files in the virus/ directory and will invoke idal which each of
them, running the script example5.py on load.
</quote>
hello
how can i run idapython script from command line using idaw.exe?
--
cyphunk://
cypherpoet.comnathan://
squimp.comfain://
deadhacker.com