python command not working

Scott David Daniels Scott.Daniels at Acm.Org
Wed Apr 22 17:42:19 CEST 2009

83nini wrote:
> ... at last i made the bat file (python25.bat) that contains the 
> following contents:
> ---
> @C:\Python25\python.exe %*
> ---
> could you tell me how to call python25 in the batch files? what batch
> files do you mean? where do i find them?

"python25.bat" or "python25.cmd" are acceptable names for that file.

Assuming you have a command window, if you enter the command,
     C:\WhereEver> echo %path%
you will see a semicolon-separated list of directories.  Put the
file in any of the directories on that list.  You should then be
able to use the command:
     C:\WhereEver> python25 <whatever>

Personally, I would use the name "python25.cmd", but that may just be
superstition on my part about the difference between .bat and .cmd

--Scott David Daniels
Scott.Daniels at Acm.Org

More information about the Python-list mailing list