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