回复 happyxxdhaha
比较这么大的数字会出错吧,你试试。
Batcher 发表于 2019-2-16 10:11 - @echo off
- Setlocal enabledelayedexpansion
- for /f "skip=1 tokens=1-6" %%a in ('wmic logicaldisk get caption^,drivetype^,freespace') do (if "%%b"=="3" (set "size=%%c"
- )
- )
- if %size% gtr 107374182400 (copy a.txt d:\) else (copy a.txt e:\)
- pause
复制代码 凑了一段 可以用 还能再精减吗
对截取不理解 |