Is it possible to add parameters to run rules?

Post any technical problems or questions you have while using or configuring Dexpot.
Bug-Tracker
thorstenk
Posts: 2
Joined: 29.01.2013 12:30:40

Is it possible to add parameters to run rules?

Postby thorstenk » 29.01.2013 12:38:21

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?

User avatar
Patrick
Developer
Posts: 7380
Joined: 04.03.2003 14:51:26

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

Postby Patrick » 29.01.2013 13:41:05

: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.

thorstenk
Posts: 2
Joined: 29.01.2013 12:30:40

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

Postby thorstenk » 29.01.2013 14:33:23

Works - although I have now a shortly flickering cmd window on my screen.

User avatar
Patrick
Developer
Posts: 7380
Joined: 04.03.2003 14:51:26

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

Postby Patrick » 29.01.2013 17:06:00

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


Return to “Support”

Who is online

Users browsing this forum: No registered users and 76 guests