Re: Using Python scripts in Windows Explorer

2006-10-23 Thread Gabriel Genellina
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

Re: Using Python scripts in Windows Explorer

2006-10-23 Thread Ant
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

Re: Using Python scripts in Windows Explorer

2006-10-23 Thread Ben Sizer
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

Re: Using Python scripts in Windows Explorer

2006-10-23 Thread Ben Sizer
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

Re: Using Python scripts in Windows Explorer

2006-10-20 Thread Gabriel Genellina
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,

Re: Using Python scripts in Windows Explorer

2006-10-20 Thread Thomas Heller
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

Re: Using Python scripts in Windows Explorer

2006-10-20 Thread MC
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

Re: Using Python scripts in Windows Explorer

2006-10-20 Thread [EMAIL PROTECTED]
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

Using Python scripts in Windows Explorer

2006-10-20 Thread Ben Sizer
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 doesn't recognise that the scrip