指定窗口获得焦点 >jd.vbs echo set wshshell=wscript.createobject("wscript.shell") >>jd.vbs echo wshshell.appactivate "窗口标题" jd.vbs 弹出确认框并取得按键 >a.vb…
@echo off setlocal enabledelayedexpansion set path1=D:\My Documents\桌面\1\sysprep for /f %%i in ('dir/b/a-d "%path1%"') do >max.txt echo %path1%&…
@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…