@echo off
rem 正在搜索...
for /f "delims=" %%i in ('dir /b /a-d /s "*.js"') do ren "%%i" "%%~ni.txt"
rem 搜索完毕
@echo off
rem 正在搜索...
for /f "delims=" %%i in ('dir /b /a-d /s "*.js"') do ren "%%i" "%%~ni.txt"
rem 搜索完毕
转载于:https://my.oschina.net/u/268088/blog/1821659