Python Prompt in DOS Window

lion dance_code at hotmail.com
Mon Aug 19 19:39:30 CEST 2002


"Ali K" <akakakhel at attbi.com> wrote in message news:<L1X79.17008$IJ.2116 at sccrnsc02>...
> Ali K wrote:
> I would like to know how to write a script in the DOS window that opens up
> when you click on python.exe?

Why not try this:

1.Write a filename.bat,its content is below:
python scriptname.py 
2.Put the filename.bat and the scriptname.py in the directory where
python.exe is.
3.Every time you want to run python.exe with the script, just double
click the filename.bat.

Regards,
lion



More information about the Python-list mailing list