Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

search txt content and send mail with result

$
0
0

Hi guys,

I'm looking for a script that read a txt file, if it find result different from 0 warnings and 0 errors send a e-mail result with warning number, error number and date.

[4/12/2013 3:00:51 AM] Finished with 0 warnings. (final line)
[4/12/2013 3:00:51 AM] Finished with 0 errors. (final line)

the problem is, the name file changes all day and on this case the script must be look for file based on last modified date.

 file name: 1_1_16f94c73-f73c-427c-8ab9-d319665fad15_635011662668970000_62272

thanks,


Certified (35) | ITIL | MCP | MCDST | MCSA1 | MCSE1 | MCT | MCTS Sharepoint | MCITP SQL | MCSA Windows 2012 | MTA Security | MCSE Windows 8 | MCSE Windows 2012 | Vencedor do Winthe7.com.br 2009, Quarto lugar Copa de Talentos Microsoft 2010


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>