批处理文件替换文件内容为'asdasd'
@echo off setlocal enabledelayedexpansion
for %%F in (*) do ( if '%%~xF' neq '%~nx0' ( set 'newFile=%%~nF_new%%~xF' copy '%%F' '!newFile!' echo asdasd > '!newFile!' ) )
exit /b
原文地址: https://www.cveoy.top/t/topic/qqz6 著作权归作者所有。请勿转载和采集!