Re: Send To Menu/Drag And Drop Question

new topic     » goto parent     » topic index » view thread      » older message » newer message

Pete Lomax wrote:
> 
> On Sun, 12 Nov 2006 22:34:03 -0800, Virtual B
> <guest at RapidEuphoria.com> wrote:
> 
> >Thanks Chris.  That seems to have done the trick.
> 
> BUT blink This thread gave me the idea of adding an entry for Edita to
> the SendTo menu, so I created a shortcut thus (erm, all one line):
> 
> "C:\Program Files\Edita\exw24.exe" "C:\Program Files\Edita\edita.exw"
> %1
> 
> and it don't work. So I created a new test program, cl.exw:
> }}}
<eucode>
> include ppp.e
> pp(command_line())
> if getc(0) then end if
> </eucode>
{{{

> When I right click on this, and Send To Edita, I get:
> {"C:\\PROGRAM FILES\\EDITA\\EXW24.EXE",
> "C:\\POSITIVE\\BUILTINS\\CL.EXW"}
> 
> To which I say Oi! Where's me middle bit gone?
> 
> Any more clues?
> Pete
> 
> PS I also created an edita.bat file which contained:
> "exw24.exe edita.exw %1", and changed shortcut to ...edita.bat" %1.
> It worked, bar the dead DOS box that has to be closed manually - it
> seems pif settings, like start minimised or close window on exit, are
> not applied when run like this, on win98.
> 
> 

I tested on windows 98 and XP..
using
  target: "F:\bin\exw.exe" "F:\projects\test.exw"
produces
-- win98
  { "F:\\bin\\exw.exe"
   ,"F:\\projects\\test.txt"}
-- winXP
  { "F:\\bin\\exw.exe"
   ,"F:\\projects\\test.exw"
   ,"F:\\projects\\test.txt"}

using
  target: "F:\bin\exw.exe" "F:\projects\test.exw" %1
produces
-- win98
  { "F:\\bin\\exw.exe"
   ,"F:\\projects\\test.txt"
   ,"%1"}
-- winXP
  { "F:\\bin\\exw.exe"
   ,"F:\\projects\\test.exw"
   ,"%1"
   ,"F:\\projects\\test.txt"}

It seems that %1 is not needed at all.
The difference appears to be that win98 will always pass the src file as the
first argument, where XP will pass it as the last argument.

On win98 I needed to create a batch file to be able to launch an exw from a
shortcut.
On neither system could I create a target to an exw file without explicitly
specifying exw.exe in the target, despite file association.

HTH

Chris Bensler
~ The difference between ordinary and extraordinary is that little extra ~
http://empire.iwireweb.com - Empire for Euphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu