5 Star 15 Fork 8

youyiio / beyongx-php

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
start_timer.bat 608 Bytes
一键复制 编辑 原始数据 按行查看 历史
cattong 提交于 2019-09-06 09:22 . sitemap更新
@ECHO OFF
echo "deploy timer to schedule task for cms"
rem 此断代码之后,当前目录名称可直接引用 %~nx1
call :CurDIR "%cd%"
pause
goto :eof
:CurDIR
echo %~nx1
C:
cd \
%~d0
cd %~dp0
set current_path=%~dp0
set disk_c=C:\
set task_name=Beyongx_%~nx1
set start_file_name=starter.bat
set delay_time=0003:00
rem 删除已存在的%task_name%的计划任务
schtasks /delete /tn %task_name% /f
rem // 当前脚本路径为
echo "Current path: %~dp0 "
if exist %disk_c% (
schtasks /create /ru SYSTEM /tn %task_name% /sc MINUTE /mo 1 /tr "cmd /c start /b php %current_path%think crontab"
)
PHP
1
https://gitee.com/youyiio/beyongx-php.git
git@gitee.com:youyiio/beyongx-php.git
youyiio
beyongx-php
beyongx-php
master

搜索帮助