ShellExecute() can't find the file or access denied

Hi,

I need to launch a small .exe during the ‘AfterRefresh’ event (using VBA), so that I call ShellExecute(…).

My little problem is that this function returns this error:
SE_ERR_ACCESSDENIED
When I use the same function, for the same .exe with the same path and parameters under C++Builder or Delphi, it works fine …

So why do this access is denied when i try to launch the .exe from Business Object’s VBA ?

Thanks,
vincent :wink:


Sunchaser (BOB member since 2007-05-09)

I’m too stupid,

I just have to put the code that contains the ShellExecute(…) in a Standard Module …

Sorry,

:wave:


Sunchaser (BOB member since 2007-05-09)

Moderator note:

The topic has been moved from BusinessObjects Classic forum to SDK (VBA/ASP/JSP) forum.


Marek Chladny :slovakia: (BOB member since 2003-11-27)