You would need to do this via a batch file. Once the server is terminated (batch finds the process running) to copy over HiveEXT.ini number two. I agree with Retra in saying whats the point when you can find/write a script for your server to do this for you. Example: your server restarts every six hours. First three hours is daytime and the last three are night. This would be a hell of a lot easier to do rather then have a batch script copy files over.
set path_hive=C:\Server\dayz_1.chernarus
set hive_night=HiveExt_night.ini
set hive_day=HiveExt_day.ini
:init
set /p "x="<"C:\batch\counter_1.txt"
echo Iteration: %x%
if %x% == 5 (
cd /d %path_hive%
xcopy %hive_night% %hive_normal% /Y
echo START SERVER WITH NIGHT SETTINGS
set /a x=1
) else (
cd /d %path_hive%
xcopy %hive_day% %hive_normal% /Y
echo START SERVER WITH DAY SETTINGS
set /a x=%x%+1
)
echo %x% > C:\batch\counter_1.txt
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.