cmd 批量重命名

for %i in (*.txt) do ren %i %~ni"-1"%~xi

abc.txt在文件名后面添加-1为abc-1.txt

%~di盘符

%~ni文件名

%~nxi文件名加扩展名