associating a filetype with a batch script, and getting parameters passed to file of that type.
- by Carson Myers
Sorry for the cryptic title.
I have associated python scripts with a batch file that looks like this:
python %*
I did this because on my machine, python is installed at C:\python26 and I prefer not to reinstall it (for some reason, it won't let me add a file association to the python interpreter. I can copy the executable to Program Files and it works -- but nothing out of Program Files seems to work).
Anyways, I can do this, so far:
C:\py django-admin
C:\py python "C:\python26\Lib\site-packages\django\bin\django-admin.py"
Type 'django-admin.py help' for usage.
C:\py django-admin startproject myProj
C:\py python "C:\python26\Lib\site-packages\django\bin\django-admin.py"
Type 'django-admin.py help' for usage.
but the additional parameters don't get passed along to the batch script. This is getting very annoying, all I want to do is run python scripts :) How can I grab the rest of the parameters in this situation?