I was just working on a script in powershell and saw the error "Length" is a ReadOnly property. It was from the code if ($args.count = 0) {exit;}. Having "grown up" writing VB code this would have worked. But in powershell you need to do if ($args.count -eq 0) {exit;} instead.
No comments:
Post a Comment