REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EMPS] "ImagePath"="C:\\FMSRun\\EMPS.exe" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EMPS\Parameters] "AppDirectory"="C:\\FMSRun" "Application"="C:\\FMSRun\\EMPS.exe" "AppParameters_HostName"="localhost" "AppParameters_Port"="1544" "AppParameters_BackupDirectory"="C:\\HL7_IN\\" "AppParameters_Switch"=".T."This is the test batch file:
sc.exe delete "EMPS" REGEDIT.EXE /S EMPS.REG sc.exe create "EMPS" binPath= "c:\FMSRun\EMPS.exe" sc.exe start "EMPS"It does everything except I get an error on the last line of the batch:
The service did not respond to the start of cotrol requiest in a timely fashion.The EMPS.exe will run fine if I run it manually, but will not start as a service.