Архивы по месяцам: Сентябрь 2016


@echo off setlocal enableextensions enabledelayedexpansion set err=100 for /f "skip=1 tokens=1-3" %%i in ('2^>nul ^ WMIC LogicalDisk ^ WHERE "DriveType='3'" ^ GET FreeSpace^, Name^, Size^') do ( set sFreeSize=%%i set sFreeSizeOf=%%k if NOT 1%%j==1 ( echo %%j^ echo !sFreeSize! fsutil file createnew %%j/xtmp.tmp !sFreeSize! del "%%j/xtmp.tmp" /q ) ) pause endlocal

Бестолковая штука CMD