Launch external Application

skewtahskewtah
I am launching a .net 2 application when a check goes down. I have to do this since I can not get the built in SMS to work with Verizon.



The exe will launch but when it looks for a dependant file it goes to the c:windowssystem32 folder instead of the folder that hosts the application. It works fine if I launch the application not via servers check. The monitoring service is running as a local service interacting with the desktop (this is how I can see the unhandled error). It does not make any difference if I change this to an admin account or have it not interacting with the desktop.



I am running version 6.6.0.

Thanks

Comments

  • AdministratorAdministrator
    That is normal as an application launched by a service does not run in the context of a directory.



    You can easily solve this by having a batch file launched that first does a CD to the relevant directory and then executes the app.
This discussion has been closed.