查找a.txt每行含有“ABC”字符串的数据,并导出到output_test.txt文件 @echo off del /F output_test.txt for /f %%b in ("a.txt") do ( findstr /c /i ":ABC:" %%b>>output_test.txt))
查找a.txt每行含有“ABC”字符串的数据,并导出到output_test.txt文件 @echo off del /F output_test.txt for /f %%b in ("a.txt") do ( findstr /c /i ":ABC:" %%b>>output_test.txt))
@echo off echo %date% %time:~0,8% 启动守护程序 SET i = 0 :start SET /a i = i + 1 echo %date% %time:~0,8% 第%i%次检查 %定时15s% choice /t 15 /d y /n >nul %寻找进程% tasklist /fi "imagename eq 守护的进程.exe" | find "守护的进程.exe" > nul %如果存在该进程% if %errorlevel%==0 ( echo %date% …
COPYRIGHT © 2005 - 2024 小小博客. ALL RIGHTS RESERVED.