[Tutor] Batch file to detect if Python is installed

Tom Playford thp at ttpcom.com
Fri Sep 2 11:45:11 CEST 2005

Dear Omniscient List,

Does anyone know of a cunning method to detect whether Python is
installed using a batch file?

I'd like a batch file to execute an .exe if Python IS NOT installed, and
execute a .py if Python IS installed.

This is my first foray into the disturbing world of windows batch files,
and I don't like it very much.

Thanks in advance,


P.S. I do realise this is a little off topic... It does involve Python
and programming... just not programming in Python.

More information about the Tutor mailing list