Running a Python program thru a Windows shortcut

TheDustbustr thedustbustr at aol.com
Sun May 11 19:00:20 EDT 2003


right click> new> shortcut
command line: 
C:\python22\python.exe c:\path\to\dfc.py dfcCfgBackup

remember, in python, sys.argv is a tuple containing args passed in.

Depending on your windows version, you MAY have to put python in double-quotes,
like so:
"C:\python22\python.exe" c:\path\to\dfc.py dfcCfgBackup




More information about the Python-list mailing list