如果大家有装pe系统(没有也无妨),给系统文件作个标记,呵呵;
可以放在在系统盘根目录双击,也可以命令行下以目录名为参数调用;
欢迎大家测试!- @echo off&setlocal enabledelayedexpansion
-
- set #small=a b c d e f g h i j k l m n o p q r s t u v w x y z
- set #big=A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
-
- :loop
- set tm=!time:~-5!&if "!tm!" gtr "00.10" (
- set/atm=16000-1!tm:.=!&set tm=000!tm!
- title count down: !tm:~-4,2!.!tm:~-2! S & goto:loop
- )else (
- title count down: !tm! S
- )
-
- if "%~1"=="" (set dir=)else set "dir="%~1""
- if "%~2"=="" (set file=*)else set "file=%~2"
- dir/a/b/s %~1.\?.?
- for /r %dir% %%a in ("%file%")do if "%%~a" neq "%~0" (
- set "$tnx=%%~nxa"
- set #1=!$tnx:~0,1!!$tnx:~-1!
- set ##=!#1!&for %%? in (%#big%)do set "##=!##:%%?=%%?!"
- set $t1=!##:~0,1!&set $t2=!##:~-1!
- set #1=!$tnx:~1,-1!
- set ##=!#1!&for %%? in (%#small%)do set "##=!##:%%?=%%?!"
- set $t=!##!
- (ren "%%~a" "!$t1!!$t!!$t2!"2>nul
- type "%%~a">"%%~a.###"2>nul
- del/a/f/q "%%~a" 2>nul
- ren "%%~a.###" "!$t1!!$t!!$t2!"2>nul)||echo %%a
- )
-
- if "%~0" neq "%~n0" pause
- goto:eof
复制代码
[ 本帖最后由 plp626 于 2011-3-4 18:52 编辑 ] |