Javier,

The RInstanceCount plugin within the R:BASE Plugin Power Pack is available to return the number of running sessions for a given executable file.

Syntax:

PLUGIN RInstanceCount vResult|FileName.exe

Where:

vResult is the variable to return the integer value

FileName.exe is the actual name and extension of the file, preceding with the full path

Notes:

Returned variable name and the value must be separated by a "|" pipe character.

Example:

Returns the total instances/sessions of RBGX5E.EXE. The variable vRBGX5ESessions will return the INTEGER value of RBGX5E.EXE sessions running on that particular workstation/server.

PLUGIN RInstanceCount vRBGX5ESessions|C:\RBTI\RBGX5E\RBGX5E.EXE

https://www.rbase.com/products/pluginpowerpack/intro.php

Very Best R:egards,

Razzak.

R:BASE Technologies, Inc.
https://www.rbase.com


At 10:58 PM 10/9/2021, [email protected] wrote:

I have a situation where I use an external application that runs performance models and the results are stored on an external database. I am SCONNECTed to the external database and I have a form that is used to generate reports from the external database. I start the form as an MDI form and then LAUNCH the external application so they run side bay side; so far so good. Now, to exit the process I need to close the external application and the MDI form individually. I would like to have a way to close both processes in one step What I need is a way to monitor when the external application is closed and then close the MDI form If I close the MDI form first, I can always use the DOS/Windows Taskkill command from a .BAT file and force the external application to close. I would prefer to check if the external application is still running ,and if it is, then use the Taskkill command. I know there has been a number of new commands added in the last couple of years and maybe there is one to check if an external program is running.
Makes sense? Any ideas on a better way to do this?

Javier,

Javier Valencia, PE
913-915-3137



--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rbase-l/0Le6X4-1n61sR1lGe-00pxLF%40mrelay.perfora.net.

Reply via email to