Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

find word in a text file and return boolean

$
0
0

Hi,

How do I search for a "keyword" in a text file, if keyword found i just want to have returned $true, and if not found return $false. Please suggest me anything other than .contains method because that's complaining and giving error when I am running my ps scripts from a scheduler called Visualcron


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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