Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell string contains

PS C:> "abc", "def" -Contains "def"
True

PS C:> "Windows", "PowerShell" -Contains "Shell"
False  #Not an exact match
 
PREVIOUS NEXT
Tagged: #powershell #string
ADD COMMENT
Topic
Name
8+7 =