Opening a file with Python
Don Dwiggins
dwig at advancedmp.net
Tue Jul 24 17:54:23 EDT 2001
Kevin Riggle writes:
> Open up My Computer, click View...Folder Options, select the File Types tab,
> and click on New Type.
> Fill in the description and extension you want to use, then click on the New
> button beneath the Actions: list box.
> Fill in the Action Name (probably Open), and set 'Application used to
> perform action:' to
> "c:\Program Files\MyPyProg\mypyprog.exe %1" if using py2exe,
> or "c:\Program Files\WinPy\winpy.exe c:\Program Files\MyPyProg\mypyprog.py
> %1",
> in both examples *including* the double-quotes.
A slight correction: you need to enclose the program path and the argument
string in separate quotes, e.g.:
"c:\Program Files\MyPyProg\mypyprog.exe" "%1"
Regards,
--
Don Dwiggins "Solvitur Ambulando"
Advanced MP Technology
dwig at advancedmp.net
More information about the Python-list
mailing list