@echo off setlocal enabledelayedexpansion set/p name=站点名称: set list=www.baidu.com www.163.com www.zj.10086.cn sasuke.cn ::rd/q/s chinamobiletest 2>…
@echo off title usbcheck ::setlocal enabledelayedexpansion set tim=3000 reg add HKLM\Software\ubc for /f "eol=! tokens=2" %%i in ('reg query HKLM\Soft…
@echo off ::::::::: ::mail:[email protected] ::by lf ::2010_07_24_00_18 ::::::::: setlocal enabledelayedexpansion color 0a title AutoGhost_v1.0 -by lf …
指定窗口获得焦点 >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=请选择: …