Ветеран
Сообщения: 27449
Благодарности: 8087
|
Профиль
|
Отправить PM
| Цитировать
Так?
читать дальше »
Код: 
@echo off
setlocal enableextensions enabledelayedexpansion
set sDevice=%~1
if defined sDevice (
for /f "usebackq tokens=8" %%i in (
`@"%ProgramFiles%\smartmontools\bin\smartctl.exe" -f brief -A %sDevice% ^| find.exe /i "Temperature_Celsius"`
) do set /a iTempture = %%i
if defined iTempture echo Tempture: [!iTempture!]
) else (
echo Usage: %~nx0 ^<device^>
)
endlocal
exit /b 0
Цитата:
Код: 
D:\Install\Smartmontools\Smartmontools 5.41>0001.cmd sdc
Tempture: [36]
|
|
Отправлено: 12:12, 01-07-2013
| #6
|