
@echo off
setlocal enabledelayedexpansion
echo list volume>"%temp%\ds.txt"
for /f "skip=8 tokens=3" %%a in ('diskpart /s "%temp%\ds.txt"') do set "used=!used! %%a"
del /q "%temp%\ds.txt" 2>nul
echo The used letters are - %used:~1%
Hope this batch file will be really useful for you.
No comments:
Post a Comment