Jump to content

BEC with tcadmin


tinboye

Recommended Posts

Rename your bec file to becSERVICEID.exe (ie bec651.exe) and try this script:

 

if exist bec/Bec.exe goto start_bec

exit

:start_bec

cd bec

start /im Bec%ThisService_ServiceId%.exe -f Config.cfg >nul 2>nul && (

echo BEC is runned!

) || (

echo Error with BEC running *** Please Contact Support ***

)

exit

Link to comment
Share on other sites

  • 4 months later...
  • 1 year later...

first you need to rename BEC with after created...

 

@echo off

set BEC_LOCATION="%ThisService_WorkingDirectory%\BEC"

cd "%BEC_LOCATION%"

ren BEC.exe BEC_%ThisService_ServiceId%.exe

 

then make a new script for after started with...

 

@echo off

set BEC_LOCATION="%ThisService_WorkingDirectory%\BEC"

cd "%BEC_LOCATION%"

start BEC_%ThisService_ServiceId%.exe -f config.cfg --dsc

 

and for restart BEC have this...

 

@echo off

taskkill /F /IM BEC_%ThisService_ServiceId%.exe

set BEC_LOCATION="%ThisService_WorkingDirectory%\BEC"

cd "%BEC_LOCATION%"

start BEC_%ThisService_ServiceId%.exe -f config.cfg --dsc

 

Hope this helps guys its how i have it in my cfg's and they don't let me down.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 17 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use