This is the second version that requires no fixed directory for the 
examples folder. This has removed the path and only uses the python directryry 
you are in. Make sure to place this batch file in the python directory only 
where all your folders are so the the next directory down is the exmaples 
directory. This batch file should work no matter where it is located.

Type:
ex.bat <enter>
    When naming the file after cutting and pasting the below into Notepad or 
the editor you are using. Granted you do not have to use ex.bat but that is 
short and simple so that any program name you wish to test is the only typing 
you do.

To run type:
ex chimp <enter>
Just type the ex then the program then hit the enter key.

Copy or cut the below and paste into Notepad or editor then save it:
@echo off
cd examples\
@echo on
python25 %1.py
@echo off
cd ..


Reply via email to