Sean and Ted, thanks.
For the moment I've left the button definition unchanged
and modified @DragFiles to fix crunched multiple filenames.
Ted's .context.txt template allows for any type of file list processing.
Mine below is just good for running a program with parameters.

@DropFiles
if (arg(2)=="|")do
  ; active button pressed, arg(3) is menu to show (or some other cmd)
  do( arg(3) )
else
  ; files were dragdropped - arg(1) is pgrm.exe arg(2) is file (list)
  ; work around powerpro bug: turn "file""file" into "file" "file"
  local files=arg(2)
  local i = index(files,??""?)
  for( ; i ; )
    files=select(files,i-1)++??" "?++remove(files,i+1)
    i = index(files,??""?)
  endfor
  ; to show console pgrms pass arg(1) = 'start "" "cmd.exe" [/c] ...'
  do ( "*dos *hide "++arg(1)++" "++files )

endif
quit



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to