Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Any idea why?

$
0
0

PS C:\Windows\system32> $propFolder = (Get-ChildItem "C:\Proprietary" -recurse | Measure-Object -property length -sum)
PS C:\Windows\system32> $propFolderSize = "{0:N2}" -f ($propFolder.sum / 1MB)
PS C:\Windows\system32> $propFolderSize
85.20
PS C:\Windows\system32> $propFolderSize -gt "150"
True

Does anyone have an idea why it is evaluating to True? the $propFolderSize clearly shows its 85.20 and it is somehow showing me that it is greater than 150. 


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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