Kill Process

Hello,

When I've started a process like test.exe and I run a fb-action, which starts also a process test.exe, but from another directory, how can I kill only the test.exe process, created by the previous fb-action?

Kind regards,

Peter

Hi Peter,

If you use the WMI Run Process action you can save the process id of the new “test.exe” process into a variable, then you can use the WMI Kill Process to terminate the process with that ID.

Regards,
Paul.

hy,

thanks for the answer, but this doesn't work...the following error occured, when I create the process with the wmi run process task:

Process creation failed - creation returned error code 9

I run this on a windows 2003 server, the help about the wmi run process task says:

WMI is supported on NT4 (you need to download it from Microsoft), Windows 2000 and XP.

Is that the problem? how can I handle this? Another Solution to save the process-ID?

 

Kind regards,

Peter

Hi Peter,

Sorry about the non-descriptive error message, an error code of 9 simply means that the specified path cannot be found. [http://msdn2.microsoft.com/en-us/library/aa389388.aspx] The action will run fine on Windows 2003, I’ll update the help file to include this information for future reference.

Regards,
Paul.

Ok thanks, it works now!

Kind regards,

Peter