⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ren_nofor.bat

📁 高手lxmxn收集的批处理。包括了批处理教程和他写的几十个很经典的代码。
💻 BAT
字号:
::Code by lxmxn @ bbs.cn-dos.net
::将C盘下所有的a.abc文件重命名为a.bcd,要求不能用for命令
::Date 15:06 2007-1-11

@echo off
:begin
    set file=%random%
    if exist %file% goto begin
    dir /s/b/a-d c:\a.abc 2>nul >%file%
:loop
    set a=
    set /p a=<%file%
    rem if "%a%"==" " goto :end
    if "%a%"=="" goto :end
    del "%a%"
    set a=%a:\=\\%
    findstr /v /c:"%a%" %file% >%file%_
    del %file%
    echo ren %file%_ %file%
    rem ping -n 1 127.1 >nul
goto loop
:end
del %file%
pause

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -