py2bat (was: How do I make a Python .bat executable file?)

Thomas Heller thomas.heller at ion-tof.com
Thu Jan 6 10:07:46 EST 2000


> You must be aware of the sad fact that the Windows "Command line
> interpreter" mangles some arguments, notably those with an = sign in it.
> This will be replaced by a space. Sometimes this can be avoided by quoting
> the argument, but if you need both quotes and = signs to be passed in
> arguments you are lost.
>

You should also be aware of the fact that you cannot redirect
output from a batch file. (I've heard this bug is fixed in Win2000)

> For perl there is a runperl.exe which, if copied to myscript.exe and run,
> calls perl myscript.pl with all arguments passed unchanged. It would
> probably be simple to clone this for python. I have never seen the source,
> however, and I am too lazy to write it myself.

A better solution would be to use Gordon's installer

http://starship.python.net/gmcm/

Regards

Thomas Heller





More information about the Python-list mailing list