At Monday 23/10/2006 07:53, Ben Sizer wrote:
> >I'd like to be able to drag a file onto a Python script in Windows
> >Explorer, or send that file to the script via the Send To context-menu
> >option, so I can then process that file via sys.argc.
> >
> >Unfortunately, I can't drag items onto the
Ben Sizer wrote:
> > Create a shortcut and drop the file over it.
...
> That is what I meant by 'the usual steps'. :) It doesn't work.
Alter the target of the shortcut to something like:
C:\Python25\python.exe C:\0\sort_test.py
and drag and drop should work, with the filename of the dragged fi
Gabriel Genellina wrote:
> At Friday 20/10/2006 12:20, Ben Sizer wrote:
>
> >I'd like to be able to drag a file onto a Python script in Windows
> >Explorer, or send that file to the script via the Send To context-menu
> >option, so I can then process that file via sys.argc.
> >
> >Unfortunately, I
MC wrote:
> I use this little batch:
>
> @echo off
> cd \dev\python
> viewarg.py %*
I try that (with viewarg.py renamed, obviously), and get this error:
"'defines.py' is not recognized as an internal or external command,
operable program or batch file."
defines.py is in the same dire
At Friday 20/10/2006 12:20, Ben Sizer wrote:
I'd like to be able to drag a file onto a Python script in Windows
Explorer, or send that file to the script via the Send To context-menu
option, so I can then process that file via sys.argc.
Unfortunately, I can't drag items onto the Python script,
Ben Sizer schrieb:
> I'd like to be able to drag a file onto a Python script in Windows
> Explorer, or send that file to the script via the Send To context-menu
> option, so I can then process that file via sys.argc.
>
> Unfortunately, I can't drag items onto the Python script, because
> Windows d
Hi!
I use this little batch:
@echo off
cd \dev\python
viewarg.py %*
I copy/paste the batch-file on the desktop, like icon.
Then, from Win-explorer, drag_and_drop & copy_and_paste run OK.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Ben Sizer wrote:
> I'd like to be able to drag a file onto a Python script in Windows
> Explorer, or send that file to the script via the Send To context-menu
> option, so I can then process that file via sys.argc.
>
> Unfortunately, I can't drag items onto the Python script, because
> Windows doe