@echo off :: Windows 설치 날짜 가져오기 for /f "tokens=2 delims==" %%A in ('wmic os get InstallDate /value ^| find "="') do set installDate=%%A set installYear=%installDate:~0,4% set installMonth=%installDate:~4,2% echo Windows 설치 연도: %installYear%년 %installMonth%월 pause