Receive Alert via Email

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?
 
P

Pegasus \(MVP\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top