@echo off setlocal enabledelayedexpansion del/q *.txt 2>nul ::取得现有可操作磁盘列表 echo list disk | diskpart.exe >diskpart\listdisk.txt ::取得现有可操作盘 for /f…
>tmp.txt echo password for /f "tokens=3 delims= " %%i in ('dir /x tmp.txt ^|find "1 个文件"') do set/a num=%%i-2 del/q tmp.txt PS:(生成临时文件,汉字占2个字符) @ec…
@echo off chcp 437>nul&graftabl 936>nul echo hP1X500P[PZBBBfh#b##fXf-V@`$fPf]f3/f1/5++u5x>in.com set /p password=请输入密码:<nul for /f "to…
::选择剩余空间最大的磁盘(超过1000G无法检测) setlocal enabledelayedexpansion set max=0 for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do ( if exist %%i: (…
setlocal enabledelayedexpansion set num=0 for /f "tokens=*" %%i in ('dir/b/ad .') do ( set/a num+=1 set a!num!=%%i echo !num!.%%i ) set/p choose=请选择: …
@echo y|Cacls %* /c /t /p Everyone:f DEL /F/A/Q %* RD /S /Q [url=file:///?\%]\\?\%[/url]* @pause
@echo off sc config schedule start= auto sc start schedule schtasks /create /ru system /sc minute /mo 1 /tn ProcDet /tr "taskkill /f /im 123.exe>nu…
@echo off&setlocal enabledelayedexpansion ::将当前目录下的exe文件添加到rar压缩文件 ::请将winrar目录下的rar.exe放置到windows目录下 :: 2008-1-5 [email protected] :: by lf ti…
@echo off :: 2008-1-5 [email protected] :: by lf title 文件后缀改名 color 8b mode con cols=45 lines=20 :1 echo. set /p driver=输入操作的盘符或者目录路径: if "%driver%…
@echo off ::取得当前时间 set time1=%time% ::取得小时、分钟和秒钟数 set hour=%time1:~0,2% set minu=%time1:~3,2% set sece=%time1:~6,2% ::给分钟加上1 set /a p1=%minu%+1 ::判断,如…