天天看点

批处理实现文件名括号中内容移置文件名前面,如:温家(360322).docx 换名成:360322_温家.docx  

批处理实现文件名括号内容中的位置转移,即将

温家(360322).docx 换名成:360322_温家.docx  

@echo off

for /f "tokens=1,2  delims=()."  %%a in ('dir /b /a-d *.docx') do (

  ren "%%a(%%b).docx" "%%b_%%a.docx"

 )