如何用批处理修改多个TXT文件名?
将下面的代码放在要处理的txt文件同目录下面运行即可: ::═════代═══码═══开═══始═════ @echo off&setlocal enabledelayedexpansion for /f "delims=" %%i in ('dir /b *。 txt') do ( call :mnm "%%i" move "%%i" "%%~ni!name!。 txt") pause&exit :mnm for /f "usebackq delims=" %%i in (%1) do ( set name=%%i&&goto :eof) ::Created By escortmnm...全部
将下面的代码放在要处理的txt文件同目录下面运行即可: ::═════代═══码═══开═══始═════ @echo off&setlocal enabledelayedexpansion for /f "delims=" %%i in ('dir /b *。
txt') do ( call :mnm "%%i" move "%%i" "%%~ni!name!。
txt") pause&exit :mnm for /f "usebackq delims=" %%i in (%1) do ( set name=%%i&&goto :eof) ::Created By escortmnm from VBS团队 ::═════代═══码═══结═══束═════。收起