1c3Cre4m 发表于 2020-8-31 13:13:29

易乐游一键清理旧游戏数据库批处理(用于重建游戏数据库)

本帖最后由 1c3Cre4m 于 2020-8-31 13:20 编辑

问题现象:
易乐游网吧如果出现上方菜单有大量服务器没有的游戏,运行提示 “ 未提供该游戏下载,请联系管理员下载 ”,需要在服务器上重建游戏数据库才可以,但是步骤比较多所以服务器运行批处理之后,直接在服务端重新引入游戏即可。

批处理下载:(解压后服务器双击运行即可)

使用步骤:
1.服务器直接运行批处理,显示结束关闭批处理。

2.易乐游服务端导入游戏即可


批处理代码:@echo off
echo ----------------------------------------------------
echo colse_service
echo ----------------------------------------------------
net stop EnjoyGameManager
net stop EyooNetService
echo ----------------------------------------------------
for /f "skip=3 tokens=4" %%i in ('sc query EnjoyGameManager') do set "st=%%i" &goto :mnext
:mnext
if /i "%st%"=="RUNNING" (goto 1)
if /i "%st%"=="STOPPED" (goto 2)
:1
echo ERROR:EnjoyGameManager not stop
pause
:2
echo EnjoyGameManager ok
for /f "skip=3 tokens=4" %%i in ('sc query EyooNetService') do set "et=%%i" &goto :enext
:enext
if /i "%et%"=="RUNNING" (goto 4)
if /i "%et%"=="STOPPED" (goto 5)
:4
echo ERROR:EyooNetService not stop
pause
:5
echo EyooNetService ok
echo ----------------------------------------------------
echo ----------------------------------------------------
echo read_installSide
echo ----------------------------------------------------
for /f "tokens=1,2* delims= " %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Century Network\yileyoo" /v "Path"') do (
      set managerPath=%%cConfig\
)
for /f "tokens=1,2* delims= " %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Century Network\yileyoo" /v "USERDATA"') do (
      set userdataPath=%%c
)
echo %managerPath%
echo %userdataPath%
echo ----------------------------------------------------
echo ----------------------------------------------------
echo del_configFiles
echo ----------------------------------------------------
echo %managerPath%DeleteGameList.ini
del /F/Q "%managerPath%DeleteGameList.ini"
echo %managerPath%EyooNetConfig.ini
del /F/Q "%managerPath%EyooNetConfig.ini"
echo %managerPath%EyooNetDataEx.dat
del /F/Q "%managerPath%EyooNetDataEx.dat"
echo %managerPath%GamesList.ini
del /F/Q "%managerPath%GamesList.ini"
echo %userdataPath%STDataEx.dat
del /F/Q "%userdataPath%STDataEx.dat"
echo ----------------------------------------------------
echo ----------------------------------------------------
net start EnjoyGameManager
net start EyooNetService
echo ------------------------End------------------------
pause



页: [1]
查看完整版本: 易乐游一键清理旧游戏数据库批处理(用于重建游戏数据库)