Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with a simple batch file

Status
Not open for further replies.

jayvo

MIS
May 24, 2001
27
US
Very new to any kind of scripting but need help with creating a batch file that will stop after its first execution. Basically, I have a batch file that runs when CPU gets high using PerfMon but I want it to only run once and not continue to run and constantly email me. Please help. This is a very simple batch but if anyone has anything to make it do more by all means please let me know. Thank you...
All I am doing is using a third party CLI email app to email me when certain perfmon items go above their threshold.


REM CPU alert
@echo off
%SYSTEMROOT%\system32\bmail -options
cls

jayvo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top