cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

calling an external .net exe from a macro in hopex v1r2 ?

veldew
Super Contributor

Hi,

 

I would like to start an external exe, written in .net from a context menu.

 

I created a metacommand for the menu item, put a macro behind it, but I don’t know how to point to an external exe.

 

 

Any documentation/guidance would be nice!

 

Tnx for your reply !

1 Reply

yjestin
Super Contributor

Hi,

 

I work with MEGA 2009 and when i call an external application, the macro is like :

 

Sub CmdInvoke(Source as MegaObject,CmdNumber as Integer)
  ...
  set oShell = CreateObject("WScript.Shell")
  strCommand = "myExePath" & "\myExe.exe" & "myExeParameters"
  oShell.run strCommand,1,true
  ...
End Sub

 

You can try it in Hopex version ...

 

Documentation : http://community.mega.com/mega/attachments/mega/725/9/17/MEGA%20Exchange%20-%20API%20EN.pdf

 

Regards.