Page 1 of 1

Is it possible to add parameters to run rules?

Posted: 29.01.2013 12:38:21
by thorstenk
Hello,

I would like to run "pskill ipmgui" when ipmgui.exe runs. That does not work when I create a rule in dexpot. It looks to me as if the rule does not allow to specify that ipmgui is a command line argument to pskill. Is that correct and is there any other way to reach my goal?

Re: Is it possible to add parameters to run rules?

Posted: 29.01.2013 13:41:05
by Patrick
:dex:

You're right, the "Run" action for rules apparently doesn't handle parameters. Anyway, just put the command into a batch file and run that instead.

Re: Is it possible to add parameters to run rules?

Posted: 29.01.2013 14:33:23
by thorstenk
Works - although I have now a shortly flickering cmd window on my screen.

Re: Is it possible to add parameters to run rules?

Posted: 29.01.2013 17:06:00
by Patrick
Ok, then use VBScript rather than a batch file. Put this into a .vbs file:

Code: Select all

Set sh = CreateObject("WScript.Shell")
sh.Run "pskill ipmgui", 0