批处理,往TXT文件里的最后一行写东西字

2025-03-13 01:49:36
推荐回答(1个)
回答1:

set txt="%appdata%\aaa\bbb\test.txt"
type %txt%|find /i "[test4]"||>>%txt% echo [test4]
type %txt%|find /i "test5=5"||>>%txt% echo test5=5
pause