Files
ppgo_job/run.bat
linxiaozhi 568e2399c0 1.windows任务返回结果gbk转utf8
2.windows远程任务判断是否有效命令
3.添加windows运行脚本
4.添加package构造脚本
5.更新readme.md
2019-02-18 09:05:41 +08:00

47 lines
778 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@shift 1
@echo off
@title PPGoJob服务
color 0A
chcp 65001
set curPath=%~dp0
:welcome
cls
echo.
echo 1.启动
echo 2.停止
echo 3.重启
echo.
set /p input= 请输入代码(选1/2/3 直接回车)
if not "%input%"=="" SET input=%input:~0,1%
if "%input%"=="1" goto start
if "%input%"=="2" goto stop
if "%input%"=="3" goto restart
cls
echo.
echo 选择无效,按任意键返回菜单
echo.
echo 现在是:%date% %time%
@pause >nul
goto welcome
:start
start "PPGo_Job" /min PPGo_Job.exe
echo 服务已启动...
pause
exit
:stop
taskkill /f /t /im PPGo_Job.exe
echo 服务已停止...
pause
exit
:restart
taskkill /f /t /im PPGo_Job.exe
start "PPGo_Job" /min PPGo_Job.exe
echo 服务已重启...
pause
exit