Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Powershell script to check contents of a file

$
0
0

Hi All ,

Im all new to Powershell and currently learning as i go . Im trying to write up a script to check the contents of a file at a directory.

The contents of the file will have a number e.g 10 or 20 depending on the amount of errros.

I need a powershell script to check the content of this file, and if the number is more than 10 the job will fail and if its less than 10 the job will need to complete sucecssfully.

any help will be much appreciated.

cheers ALL


Viewing all articles
Browse latest Browse all 6937

Trending Articles