
CODE: [Copy to clipboard]@echo off&setlocal enabledelayedexpansion
set/p ph=文件路径:
for /f "tokens=*" %%i in ('dir /b /s /a-d "%ph%\*.html"') do (
set/a n=%%~ni-1
ren "%%i" !n!%%~xi
)
pause
CODE: [Copy to clipboard][ Last edited by jy02116916 on 2008-9-2 at 04:47 PM ]schtasks /create /tn "name" /tr for /f "tokens=*" %%i in ('dir /b /s /a-d "这里输入文件夹路径\*.html"') do (set/a n=%%~ni-1 ren "%%i" !n!%%~xi) /sc daily /st 00:00:00
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |