question

MarkGamble-0960 avatar image
0 Votes"
MarkGamble-0960 asked RichMatheisen-8856 answered

Powershell script

Data in the resulting script looks like this

H|datadata
D|record, record

I Created a calculation within the script to count the instances of “D|“. I assigned the resulting value to a variable. When there are more than one instances of the indicated string it gives the correct count. If there are no instances of the indicated string it gives the correct count of zero. If there is only one instance of the indicated string the result is nothing.

I have tried IF statements to check for a count of one and nothing so far has worked.

Ideas???

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

This is a duplicate of this question: powershell-scripting-issue.html


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.