Win32 : Making script.py executable in DOS box

Neo Brave neo_brave at my-deja.com
Mon Jul 3 21:45:38 EDT 2000


In article <YC185.27369$W35.636919 at news20.bellglobal.com>,
  "Olivier Dagenais" <olivierS.dagenaisP at canadaA.comM> wrote:
> How about a batch file called p.bat ?  (with optional status messages)
>
> -----start p.bat--------
> @echo off
> echo Starting script '%1.py' ....
> c:\progra~1\Python\python "%1.py" %2 %3 %4 %5 %6 %7 %8 %9
> echo Execution complete!
> ----end p.bat-----------
>
> Given you have a script called "spam.py":
>
> -----start spam.py------
> print "Spam spam spam spam"
> -----end spam.py--------
>
> Then, you would type:
>
> c:\work\python\stuff>p spam
> Starting script 'spam.py' ...
> Spam spam spam spam
> Execution complete!
>
> Is that what you wanted??

Thanks. Thats an improvement on what I have been doing till now but
its not quite as neat as the WinNT solution (which I've tried on
WinNT and it works :-)).

Maybe its time I bit the bullet and upgraded to NT.

Neo
--
Neo Brave


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list