Skip to content

Commit

Permalink
修复windows下定时任务重定向失败的BUG (#414)
Browse files Browse the repository at this point in the history
Fix schtasks output bug

Co-authored-by: New Future <[email protected]>
  • Loading branch information
LeadroyaL and NewFuture authored Feb 14, 2024
1 parent 605d89d commit 863c8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@ECHO OFF
REM https://msdn.microsoft.com/zh-cn/library/windows/desktop/bb736357(v=vs.85).aspx

SET RUNCMD=python "%~dp0run.py" -c "%~dp0config.json" >> "%~dp0run.log"
SET RUNCMD="%~dp0run.bat" "%~dp0run.log"

SET RUN_USER=%USERNAME%
WHOAMI /GROUPS | FIND "12288" > NUL && SET RUN_USER="SYSTEM"
Expand Down

0 comments on commit 863c8f0

Please sign in to comment.