External Program syntax

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Nick Danger
Posts: 23
Joined: Sun Oct 26, 2003 6:58 pm

External Program syntax

Post by Nick Danger »

I am trying to run a batch file as part of an Action Profile.
This command line works:
C:\Program Files\HostMonitor3\serverdown.bat

When I run this command from a CMD prompt, the parameter passes to the batch file correctly.
C:\Program Files\HostMonitor3\serverdown.bat Test

But when I try to pass one of the macro variables to the batch file as part of Executing an External Program, the batch file simply doesn't run at all.

I tried a couple of other formats but nothing worked.
C:\Program Files\HostMonitor3\serverdown.bat %TestName%
"C:\Program Files\HostMonitor3\serverdown.bat %TestName%"

But when I change it back, it works.
C:\Program Files\HostMonitor3\serverdown.bat

What am I doing wrong? What is the correct syntax/format for the External Program field?
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

C:\Program Files\HostMonitor3\serverdown.bat %TestName%
"C:\Program Files\HostMonitor3\serverdown.bat %TestName%"
The first entry would try to execute the "program": C:\Program
The second entry would try to execute the "program": C:\Program Files\HostMonitor3\serverdown.bat %TestName%

Try this one: "C:\Program Files\HostMonitor3\serverdown.bat" %TestName%
Nick Danger
Posts: 23
Joined: Sun Oct 26, 2003 6:58 pm

Post by Nick Danger »

That was it... :D
Post Reply