11 lines
403 B
Batchfile
11 lines
403 B
Batchfile
@echo off
|
|
setlocal EnableExtensions
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
set "LOG_DIR=%SCRIPT_DIR%..\..\runtime\private\wangshang-bank-exports\logs"
|
|
if not exist "%LOG_DIR%" mkdir "%LOG_DIR%"
|
|
set "TASK_LOG=%LOG_DIR%\task-host.log"
|
|
|
|
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%run-wangshang-daily.ps1" %* >> "%TASK_LOG%" 2>&1
|
|
exit /b %ERRORLEVEL%
|