color 9 setlocal enableextensions enabledelayedexpansion for /f "delims=" %%l in ('wmic computersystem get Manufacturer^,Model^,SystemType^,TotalPhysicalMemory /format:list') do >nul 2>&1 set "System_%%l" for /f "delims=" %%l in ('wmic cpu get * /format:list') do >nul 2>&1 set "CPU_%%l" for /f "delims=" %%l in ('wmic os get FreePhysicalMemory^,TotalVisibleMemorySize /format:list') do >nul 2>&1 set "OS_%%l" set /a OS_UsedPhysicalMemory=OS_TotalVisibleMemorySize-OS_FreePhysicalMemory for /f "delims=" %%l in ('wmic volume get DriveLetter^,FreeSpace /format:list') do ( >nul 2>&1 set "TEMP_%%l" if "!TEMP_DriveLetter:~1,1!"==":" if defined TEMP_FreeSpace set StorageSpace_!TEMP_DriveLetter:~0,2!=!TEMP_FreeSpace:~0,-1!&set TEMP_DriveLetter=&set TEMP_FreeSpace= ) echo Manufacturer: %System_Manufacturer% echo Model: %System_Model% echo Processor Type: %PROCESSOR_ARCHITECTURE% echo Processor Size: %CPU_AddressWidth% echo System Type: %System_SystemType% echo Storage Space: set StorageSpace_ echo RAM total: %OS_TotalVisibleMemorySize% KiB echo RAM free: %OS_FreePhysicalMemory% KiB echo RAM used: %OS_UsedPhysicalMemory% KiB echo Percent Ram: SET /A Result=(%OS_UsedPhysicalMemory%/%OS_TotalVisibleMemorySize%) echo %Result% @echo off TIMEOUT 10>nul cls GOTO A
Friday, November 21, 2014
CMD Computer Info
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment