현재 디스크 확인
@echo off for /f "tokens=4,5 skip=1 delims=\" %%a in ('wmic os get Name') do set dis=%%a& set par=%%b ) echo select volume C > bpt.scr echo list part >> bpt.scr diskpart /s bpt.scr > bp1.txt find "MB " bp1.txt > bp2.txt set BOOTPART= for /f "tokens=1-4 usebackq" %%a in ("bp2.txt") do ( set BOOTPART=%%b ) ) if exist bpt.scr del bpt.scr if exist bp1.txt del bp1.txt if exist bp2.txt del bp2.txt ech..