Attempting to report CPU clock speed continuously in batch
问题 I am trying to make a CPU clock speed tracker, but I need some help on the code. setlocal enableextensions enabledelayedexpansion :a for /f %%a in ('copy /Z "%~dpf0" nul') do set "ASCII_13=%%a" set /p "=!ASCII_13!" <NUL wmic cpu get CurrentClockSpeed goto a I'm interested in getting something like this: CurrentClockSpeed 2401 not this (the code I'm trying to use outputs this): CurrentClockSpeed 2401 CurrentClockSpeed 2401 CurrentClockSpeed 2401 CurrentClockSpeed 2401 Can you please help me?