Win32 : Making script.py executable in DOS box

Adam Sampson azz at gnu.org
Tue Jul 4 10:07:08 EDT 2000


Neo Brave <neo_brave at my-deja.com> writes:

> > No solution I am aware of for 95, although there are some tricks
> > you can pull (Im sure someone else will fill these in for you)!
> Anyone???

How about this, saved in your PATH as hello.bat:

rem = """
python wherever\hello.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
exit
"""
print "hello, world"
# more Python code

which can then be run by typing "hello"?

-- 

Adam Sampson
azz at gnu.org



More information about the Python-list mailing list