首先,应用到所有子文件夹
dir /a-d /b *.txt 改成dir /a-d/s/b *.txt
其次,echo %in_data% > %%a 会删除原有所内容。
echo;%in_data%>> %%a 不会删除原内容,在原文件尾巴上追加。