Generate a Windows command file to execute a Python program

Category: Python - Miscellaneous

Generate a Windows command file that executes a Python program. Typing
'my_prog arg1 is easier than typing 'python C:\PyLib\my_prog.py arg1'.
Needed because Windows does not support '#!/bin/env python' as the first
line of the program. Date: 23 April, 2012


Sysadmin

Homepage: http://code.activestate.com/recipes/366355-generate-a-windows-command-file-to-execute-a-pytho/?in=lang-python

Developer: Jim Jinkins

License: Python License

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Internet Billing Wizard 1.

developer Developer: http://tekmanproductions...
license License: Freeware
operating systems Operating System: Unix


Calculates IOPS for all disks in Linux/Unix system.

developer Developer: Slava Yanson
license License: Freeware
operating systems Operating System: Windows


RSH sometimes hangs if it cannot resolve to a given host.

developer Developer: Shrinidhi Rao
license License: Freeware
operating systems Operating System: Windows


System administrators sometimes need to automate commands which prompt for a password (or any other single prompt) before they execute.

developer Developer: John Landahl
license License: Python License
operating systems Operating System: Windows


Takes a stream of numbers and outputs simple ASCII graphs of those numbers.

developer Developer: Drew Gulino
license License: Freeware
operating systems Operating System: Windows


A Python script that runs arbitrary Python scripts in an input loop.

developer Developer: Drew Gulino
license License: Freeware
operating systems Operating System: Windows


LoggingWebMonitor listens for log records sent from other processes running in the same box or network.

developer Developer: Gabriel Genellina
license License: Freeware
operating systems Operating System: Windows


Socket.

developer Developer: John Nielsen
license License: Python License
operating systems Operating System: Windows


The standard library modules SimpleHTTPServer and CGIHTTPServer are extremely
useful, but the documentation hides their virtues.

developer Developer: Michele Simionato
license License: Python License
operating systems Operating System: Windows