Sevenfal

这个人太懒什么东西都没留下

数值操作

整数加100为另一数平方,加168为另一数平方 @echo off setlocal enabledelayedexpansion for /l %%b in (1 1 999) do ( for /l %%a in (1 1 999) do ( set/a c=%%a*%%a-%%b*%%b if…

未完成-UsbCheck

@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…

vbs调用

指定窗口获得焦点 >jd.vbs echo set wshshell=wscript.createobject("wscript.shell") >>jd.vbs echo wshshell.appactivate "窗口标题" jd.vbs 弹出确认框并取得按键 >a.vb…

关联盘符比到盘符

@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: (…