Converting mol files to InChiKey in large batches
This is exactly why I wrote Open Babel.

obabel *.mol -oinchikey -m

As long as you're not exceeding the number of command line arguments, you're done.