Hello,
It tooks me an hour to found simple typo in statement “$file.Trim().lenth -gt 0” where $file is just String object. Obviously I would not be able even to compile this if this would be .NET application but in powershell it did not do anything at all and just returned $false for that statement.
There is no solution in Powershell for this issue and I just need to be very carefull or there is some sort of “Option Explicit” or similar I can define to raise Exception on trying to get Property which does not exist?
Thanks,
G