Command line arguments in Windows
mhwalker at shaw.ca
Tue Mar 4 08:45:31 CET 2008
"Mark Tolonen" <mark.e.tolonen at mailinator.com> wrote in message
news:of6dnVTvVvGtalHanZ2dnUVZ_uCdnZ2d at comcast.com...
> From the command line, the 'ftype' and 'assoc' commands can be used
> view how an extension is handled:
> C:\>assoc .py
> C:\>ftype Python.File
> Python.File="C:\Python25\python.exe" "%1" %*
> My guess is your command line looks something like this:
> Python.File="C:\Python25\python.exe" "%1"
> The script name is being passed, but not the rest of the arguments.
> I vaguely remember seeing this on an older version one of ActiveState's
> ActivePython installers. What version of Python are you running?
Here is the output from the commands you listed which looks right to me.
python.file="C:\Python25\python.exe" "%1" %*
I am using Python 2.5.2 from http://www.python.org/ running on Windows
Vista. Would ActiveState's version be a better choice here?
More information about the Python-list