Running a Python program thru a Windows shortcut

George Kinney gk_2345 at yahoo.com
Sun May 11 23:29:28 EDT 2003


"Patrick Useldinger" <uselpa at myrealbox.com> wrote in message
news:3ebeb37c_1 at news.vo.lu...
> Hello,
> I've written a small, non-GUI program that I am running from the command
> line. This works OK, but I can't figure out how to run it from a Windows
> shortcut placed on a desktop.
> The command I execute manually is: dfc dfcCfgBackup, wth dfc being a
> Python program, and dfcCfgBackup being a parameter file that is passed
> as an argument.
> Can anybody provide me with an example on how to do this?

The one answer I haven't seen anyone give is to create a new shortcut, and
change
the command line to:
start dfc.py dfcCfgBackup

If both dfc.py and dfcCfgBackup aren't in your path, you'll need to include
fully qualified path names.






More information about the Python-list mailing list