2006-05-24

Python2Bat

I've come across a looong discussion of the problem of embedding python code to batch files. To click and run.

The discussion is long, solutions are bulky.

There was no need to make all that fuss:
python2.4 -x %0 & GOTO EXIT

print("Hello, from python!");

"""
:EXIT
@rem """

No comments:

Post a Comment