
[已解決]批處理如何實(shí)現(xiàn)數(shù)據(jù)庫行字符對比查找
功能查找 abc123 是否在 記錄.txt 里面 如果在就打開 不在 不管他現(xiàn)在我想把a(bǔ)bc123放到到外面 數(shù)據(jù)庫.txt 里面同時(shí)有多行都需要查找 如果其中有一行存在 都會打開它例如 數(shù)據(jù)庫.txt 里面abc123gsdfg5544wdqnclick="copycode($('code0'));">復(fù)制代碼
- setlocal enabledelayedexpansion
- for /f delims= %%a in ('dir /b /a-d 記錄.txt') do (
- findstr /i /c:abc123 %%a
- if not !errorlevel!==1 start 記錄.txt
- )

