VERIFIED SOLUTION i

How to start and stop dialog server and MH dialog services automatically in Portrait Dialogue

Portrait Dialogue Version: 5.2, 6.0 (SP1 and SP2), 6.1 (SP1, SP2, SP3)
 
The Windows batch files are attached with this Knowledge article in the zip format.

The zip contains following files:
  • mhrestart.bat
  • mhstart.bat
  • mhstartsrv.bat
  • mhstop.bat
  • startcoms.vbs
  • stopcoms.vbs
Description fo the files:
  • mhrestart.bat - Running batch file will restart MH Dialogue Manager Service, MH Send Mail Service and MH Recieve Mail Service.
  • mhstart.bat - Running this batch file start MH Dialog Server (in Com+), MH Dialogue Manager Service, MH Send Mail Service and MH Recieve Mail Service.
  • mhstartsrv.bat - Running batch file will enable MH Dialog Server if it was disabled
  • mhstop.bat - Running this batch file will stop MH Dialogue Manager Service, MH Send Mail Service and MH Recieve Mail Service and disable MH Dialog Server (in Com+).
  • startcoms.vbs - Contains code for supporting the batch files.
  • stopcoms.vbs - Contains code for supporting the batch files.
There are two ways to run the batch files:
  • Double-click on the batch file and it will get executed.
  • Windows Task Scheduler can be used to schedule the batch files, if periodic start and stop of the Dialog Server and MH Server is required.
UPDATED:  August 15, 2017