Need help on batch file

10/29/2013 20:28 koto#1
Hey guys,

My server runs perfectly when I start the files(accserver,npc,msgserver) manually, but I tryed creating a batch file wich should start up all 3 in a single click. Npc and msg server both open fine using the batch file, but the accountserver giving the error: "Config.ini open error" followed by the error: "framework create failed". I'm not sure how this is happening and any help in the matter would be appreciated.

Regard,


Koto

P.s. the command I'm using is: START /wait pathToACCserver\accserver.exe
10/29/2013 21:37 idlemonkey#2
try using pid instead of path to a file
[Only registered and activated users can see links. Click Here To Register...]

also if u intend on having it start on boot you need to add it as delayed start in your task because it will open it before your system is fully loaded otherwise


note: using a batch file to preform a maint without the proper call to close the application "will" cause a rollback every maint
10/30/2013 03:19 funhacker#3
Quote:
Originally Posted by idlemonkey View Post
try using pid instead of path to a file
[Only registered and activated users can see links. Click Here To Register...]

also if u intend on having it start on boot you need to add it as delayed start in your task because it will open it before your system is fully loaded otherwise


note: using a batch file to preform a maint without the proper call to close the application "will" cause a rollback every maint
idle is right here, you don't want your server attempting to start before mysql has started up.
Personally we used to have our system start everything up (after successful logon - which was done via regedit) in a logical order, being mysql as the first. It also would only proceed through the list of processes/services as they successfully started.
10/30/2013 10:11 idlemonkey#4
Quote:
Originally Posted by funhacker View Post
idle is right here, you don't want your server attempting to start before mysql has started up.
Personally we used to have our system start everything up (after successful logon - which was done via regedit) in a logical order, being mysql as the first. It also would only proceed through the list of processes/services as they successfully started.
you dont need to use regedit anymore to make a startup entry in the registry as the features are built directly into the task scheduler and Service Control Manager now (sc)
and it writes the registry values for you :) some windows updates are cool after all
or srvany which is a more easy to use application from earlier versions of windows
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

or add the delay directly into your batch file (.bat)
[Only registered and activated users can see links. Click Here To Register...]

or be creative do it with visual basic (.vb)
[Only registered and activated users can see links. Click Here To Register...]

and of course theres always the 3rd party application method

[Only registered and activated users can see links. Click Here To Register...]
10/30/2013 14:05 funhacker#5
Quote:
Originally Posted by idlemonkey View Post
you dont need to use regedit anymore to make a startup entry in the registry as the features are built directly into the task scheduler and Service Control Manager now (sc)
and it writes the registry values for you :) some windows updates are cool after all
or srvany which is a more easy to use application from earlier versions of windows
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

or add the delay directly into your batch file (.bat)
[Only registered and activated users can see links. Click Here To Register...]

or be creative do it with visual basic (.vb)
[Only registered and activated users can see links. Click Here To Register...]

and of course theres always the 3rd party application method

[Only registered and activated users can see links. Click Here To Register...]
For auto login with an account that has a password you do, sorry was busy at the time so wasn't explained the best it could.
10/30/2013 17:10 koto#6
Thanks for the in depth tips, but I fixed it by changing the directory to the directory of the accserver and then start it and then change the directory to the npc and msgserver and start them up afterwards. This way I'm not getting any errors.