REM 传递参数给append_log.bat时,如果参数有空格,要用单引号把参数包括起来,在目标程序用%*获取参数
start /min "append_log" append_log.bat '开始运行%APP_NAME%'
REM append_log.bat
@ECHO OFF
set cmdPath=%~dp0
set datestr=%date:~0,4%%date:~5,2%%date:~8,2%
REM 使用%*来接收参数
ECHO %* >> %~dp0%datestr%.log
exit