set _php_file="e:\webroot\cms\redis.php"
setlocal enabledelayedexpansion
下面这个可以正确执行
wmic process where name="php.exe" get processId,commandLine
修改成报错
for /f "tokens=1,2" %%a in ('wmic process where name="php.exe" get commandLine^,processId ^| findstr /i %_php_file%') do (
echo %%a
echo %%a>>%~dp0keep.txt
)
需要如何修改