这是AI的答案,不知道可行? | @echo off | | setlocal enabledelayedexpansion | | | | :loop | | set timestamp=%date:~-10,2%-%date:~-7,2%-%date:~-4,4%_%time:~0,2%-%time:~3,2%-%time:~6,2% | | set log_file=logcat_%timestamp%.txt | | | | echo Starting logcat capture to %log_file% | | adb logcat -v time > "%log_file%" | | timeout /t 1800 > nul | | taskkill /F /IM adb.exe > nul | | | | echo Logcat capture stopped for %log_file% | | timeout /t 60 > nul | | goto loopCOPY |
|