Re: Command-line does work when scheduled



En Sat, 29 Sep 2007 22:04:06 -0300, Jim <jscrerar@xxxxxxxxxxxxxx> escribi�:

If it works this way, maybe the .py file extension is not correctly
registered.

Yes, it works this way.
How do I register the .py extension correctly?

From a command line, type:
assoc .py
You should get:
..py=Python.File
If you get an error, or another thing like py_auto_file:
assoc .py=Python.File

Then:
ftype Python.File
You should get:
Python.File=c:\path\to\python.exe "%1" %*
If you don't:
ftype Python.File=c:\path\to\python.exe "%1" %*

The %* at the end is important: if you created the association by using "Open with...", or selecting Python from the list of installed programs, very likely the command says only "%1" - that is, the script being open, but without any additional arguments.

Better if you have administrative rights to do this tasks.

--
Gabriel Genellina

.



Relevant Pages

  • Re: Command-line does work when scheduled
    ... How do I register the .py extension correctly? ... From a command line, type: ... assoc .py=Python.File ... Microsoft Windows XP ...
    (comp.lang.python)
  • Re: Error 1722
    ... Follow these steps to register the file. ... administrator or as a user with administrative rights. ... How to resolve Common "Windows Installer" Problems ... > installer package. ...
    (microsoft.public.windowsxp.help_and_support)