Receive Alert via Email

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to monitor my hard drive free space via Performace tool. Which counter
will I select to do it? And I want, when alert will triggered I will receive
a message through email. How is possible?
 
Asif Razzaq Attari said:
I want to monitor my hard drive free space via Performace tool. Which counter
will I select to do it? And I want, when alert will triggered I will receive
a message through email. How is possible?

You could get the Task Scheduler to run the following
batch file once every day or once every week:

Line1 @echo off
Line2 set limit=2000
Line3 for /F "tokens=3" %%a in ('dir /-c C:\ ^| find /i "bytes free"') do
set free=%%a
Line4 set free=%free:~0,-6%
Line5 if "%free%"=="" set free=0
Line6 if %free% LSS %Limit% c:\tools\blat . . .

It will send you a message if the amount of free space on drive C:
drops below 2000 MBytes. Blat.exe is a command line mailer that
you can download freely from many sites.
 
Back
Top