This is a basic, single-file Windows batch script (.bat) for quickly checking essential system health metrics in the command line. It uses the Windows Management Instrumentation Command-line (WMIC) utility to fetch real-time data.
-
Real-time Metrics: Displays current CPU Load Percentage, available physical memory, and total memory.
-
Disk Status: Shows the size and free space for all detected logical drives.
-
Auto-Refresh: Clears the screen and updates the metrics whenever any key is pressed.
-
Lightweight: Requires no external dependencies, running entirely via native Windows tools.
-
Save the provided code into a file named
monitor.bat. -
Double-click the file to run the script, or execute it directly from the Command Prompt:
monitor.bat -
The system metrics will display immediately.
-
Press any key to refresh the data.
-
Press
Q(orq) and thenEnterto exit the monitoring loop.
-
This script requires a Windows operating system with WMIC enabled.
-
The output format is raw text from the WMIC commands, which is fast but not highly graphical.