Closed igroglaz closed 3 years ago
it's better to rework it to .bat file cause: 1) bat is faster to run (this on is RMB -> choose 'run with powershell' 2) less good if there will be need in moving server to another hosting (as you need to edit Windows registry to allow powershell files without notification)
Also there is a bug.. I've got not server1 server2 server3 server4 server9
in server9 folder there is copied file a2serv5.exe, while it should be a2serv9.exe
we got on server in C:\Allods2\ several folders: Server1 (got inside a2serv1.exe) Server2 (got inside a2serv2.exe) Server3 (got inside a2serv3.exe) ...
When we compile server we have 3 files: a2server.exe srvmgr.dll world.res
I put this files to folder on server (any folder).
Task is to create bat file to copy this 3 files to all server folders and replace files (a2server.exe should be renamed to a2servX.exe, depending on folder).