1.去掉当前目录.jpg文件前面的zp开头标识
@ECHO OFF
SETLOCAL EnableDelayedExpansion
FOR %%F IN (zp*.JPG) DO (
SET NewName=%%F
SET NewName=!NewName:~2!
REN %%F !NewName!
)
ENDLOCAL
2.在每个.rm文件开头增加走遍美国开头标识
@ECHO OFF
SETLOCAL EnableDelayedExpansion
FOR %%F IN (*.rm) DO (
SET NewName=%%F
SET NewName=走遍美国!NewName!
REN %%F !NewName!
)
ENDLOCAL