<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; CMD/BAT: Получить температуру процессора]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=18452&amp;type=atom" />
	<updated>2025-05-22T07:06:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18452</id>
		<entry>
			<title type="html"><![CDATA[CMD/BAT: Получить температуру процессора]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=162486#p162486" />
			<content type="html"><![CDATA[<p>Батник выводит температуру процессора в градусах Цельсия с точностью до двух знаков после десятичной точки:</p><div class="codebox"><pre><code>@echo off
for /f &quot;skip=1 tokens=2 delims==&quot; %%A in (&#039;wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature /value&#039;) do (
   set Kel=%%~A
)
set /a Deg=Kel*10-27315
set CPU_Temp=%Deg:~0,-2%.%Deg:~-2%
echo CPU temperature: %CPU_Temp% C</code></pre></div><p>Батник надо запускать от администратора.</p><p><a href="https://forum.script-coding.com/viewtopic.php?id=18451">Тема для обсуждения</a></p>]]></content>
			<author>
				<name><![CDATA[Arigato]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29277</uri>
			</author>
			<updated>2025-05-22T07:06:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=162486#p162486</id>
		</entry>
</feed>
