本帖最后由 pascal331 于 2011-1-25 18:54 编辑
如题
bat多了也麻烦,干脆就写一起算了,开关服务器就一个bat就够了
24日更新,汲取了12楼的经验
- :meun
- cls
- @echo off
- color 20
- title 龙ol服务端开关批处理,请按提示操作!中途请勿关闭窗口待运行完指令后将自行关闭
- echo.
- echo 输入字母执行相应操作
- echo **********************************************
- echo * s.启动MySQL和服务端 r.重启服务端 *
- echo * d.关闭服务端和MySQL e.取消并退出 *
- echo **********************************************
- echo.
- :cs
- choice /c sdre /n /m”: 选择执行类型 :”
- if errorlevel 1 (goto om)
- if errorlevel 4 (goto ex)
- if errorlevel 3 (goto rt)
- if errorlevel 2 (goto ds)
- :om
- cls
- copy D:\game\启动数据库\local\mysql\my.ini %SystemRoot% /y >nul
- IF ERRORLEVEL 1 goto hint
- set programit=D:\game\启动数据库\local\home\admin\program\
- set closeit=%programit%close.bat %Disk%
- start D:\game\启动数据库\local\mysql\bin\mysqld-nt.exe –defaults-file=D:/game/启动数据库/local/mysql/bin/my-small.cnf
- net start mysql
- SET wait=ping -n 2 127.0.0.1 ^>^nul
- for /l %%n in (5,-1,0) do (
- rem cls
- echo **************************************
- echo.
- echo %%n秒后自动开启服务器…
- echo.
- echo **************************************
- %wait%
- cls
- )
- start D:\game\server\LoginServer3.exe
- ping -n 4 127.0.0.1>nul
- start D:\game\server\LoongBillServer.exe
- ping -n 4 127.0.0.1>nul
- start D:\game\server\LoongDB.exe
- ping -n 4 127.0.0.1>nul
- start D:\game\server\LoongWorld.exe
- (
- :ds
- cls
- SET wait=ping -n 2 127.0.0.1 ^>^nul
- for /l %%n in (5,-1,0) do (
- rem cls
- echo **************************************
- echo.
- echo %%n秒后关闭服务器…
- echo.
- echo **************************************
- %wait%
- cls
- )
- taskkill /f /t /im LoginServer3.exe
- taskkill /f /t /im LoongBillServer.exe
- taskkill /f /t /im LoongDB.exe
- taskkill /f /t /im LoongWorld.exe
- ping -n 2 127.0.0.1>nul
- D:\game\启动数据库\local\home\admin\program\pskill.exe mysqld-nt.exe c
- D:\game\启动数据库\local\home\admin\program\pskill.exe Apache.exe c
- IF “%Disk%”==”” set Disk=w
- subst “%Disk%”
- (
- goto end
- :rt
- cls
- taskkill /f /t /im LoginServer3.exe
- taskkill /f /t /im LoongBillServer.exe
- taskkill /f /t /im LoongDB.exe
- taskkill /f /t /im LoongWorld.exe
- SET wait=ping -n 2 127.0.0.1 ^>^nul
- for /l %%n in (5,-1,0) do (
- rem cls
- echo **************************************
- echo.
- echo %%n秒后重启服务器…
- echo.
- echo **************************************
- %wait%
- cls
- )
- start D:\game\server\LoginServer3.exe
- ping -n 4 127.0.0.1>nul
- start D:\game\server\LoongBillServer.exe
- ping -n 4 127.0.0.1>nul
- start D:\game\server\LoongDB.exe
- ping -n 4 127.0.0.1>nul
- start D:\game\server\LoongWorld.exe
- (
- :ex
- exit
复制代码
———————————————————————–
忘记说了,这个是针对一键端的,如果是用论坛上另一个手工端就将LoongWorld.exe改成LoongWorld_1.exe
汲取了12楼的经验
龙ol服务端应用.rar (939 Bytes, 下载次数: 456) 2011-1-25 18:54 上传 点击文件名下载附件


![[一键安装] 鸣潮单机版 一鍵安裝 (最新秦鳴) 亲测可玩 亲测可玩 亲测可玩-七玩网](http://static.527wan.top/wp-content/uploads/replace/acbab573f6c73efe59059fff40c027f7.png)



![[端游单机] 原神- (V5.3+V5.0+V4.7+V4.6+V4.5+V4.01)单机(本地)剧情至尊整合版-七玩网](http://static.527wan.top/wp-content/uploads/2025/02/b5767abdfc20250222194201.png)

![[一键安装] 奇迹S6阉割1.03H国际端全扩展-免费单机-七玩网](https://static.527wan.top/wp-content/uploads/2024/04/20240421023757282-Beg5NT.jpg)
![[一键安装] 梦幻西游吊3神器赐福九黎城单机-七玩网](https://static.527wan.top/wp-content/uploads/2024/04/20240421023757960-BegfH0.jpg)
![[一键安装] 【手游】分享一批安卓手游内购版等大全合集-七玩网](https://static.527wan.top/wp-content/uploads/replace/e6e23a06fefa6cc893a0551d08748100.png)
![[手工架设] 大话西游物集345精仿碧海端,玩着还行-七玩网](https://static.527wan.top/wp-content/uploads/replace/0d9605b1a5024fdd6ecec89948ca0a80.png)
![[手工架设] 【2024.6.23】某道手游【6周年阵营端】一机详细视频搭建教程-七玩网](https://static.527wan.top/wp-content/uploads/replace/81815afe9b12c5087bf0b2e16b247c23.jpeg)


没有回复内容