none
How to code this Powershell Script? RRS feed

  • Question

  • I would like to change on checking file size using 50b instead of 5Kb,

    Does anyone have any suggestions on whether 50b is correct syntax or not

    Thanks in advance for any suggestions :>

      If ((Test-Path $file) -and (Get-Item $file).length -gt 5Kb) {break}

      If ((Test-Path $file) -and (Get-Item $file).length -gt 50b) {break}


    Thanks in advance for any suggestions

    Friday, January 24, 2014 8:34 AM

Answers

All replies