The purpose of the script is to start Windows SMS Sender and send a message to my mobile via the mobile that is connected to the Hostmon server.
When I run the script from the command line it performs perfectly.
Within Hostmon I have created an Action Profile called AlertSteve. This Action Profile has two Actions, an email and a text. The email Action works fine. The text Action, called TextSteve, does not work. I have configured it with the following settings:
Action type: Execute External Program
Action name: SteveText
Execute by: HostMonitor
Condition to Start Action: standard mode
Start When: 1 consecutive Bad results occur
Repeat: Until status changes
Time Restriction: None
Command Line: cmd /c "C:\Program Files\HostMonitor8\Text.bat" 0275993536 KS_PRINTER PING BAD
Window Mode: SW_SHOWNORMAL
If I copy and paste the contents of Command Line into a Run... it works perfectly.
However when I test this action profile nothing happens.
The contents of the batch script are as follows:
@echo off
start "SENDTEXT" "C:\Program Files (x86)\Microsoft SMS Sender\SMSSender.exe" /p:%1 /m:"%2 is testing %4 for the following test: %3"
ping -n 8 -w 10000 127.0.0.1
taskkill /im SMSSender.exe
exit
Can anyone help?

Thanks in advance.