Format-Table Size Column is Blank

Welcome Forums General PowerShell Q&A Format-Table Size Column is Blank

Viewing 1 reply thread
  • Author
    • #261593
      Topics: 13
      Replies: 40
      Points: 177
      Rank: Participant

      When running the following Script:

      <# Multiple Filename Changes #>
      $old = “*.itt”
      $new = “*.xml”

      Get-ChildItem -Path C:\Temp -Filter *.itt | Rename-Item -NewName {[System.IO.Path]::ChangeExtension($_.Name, “.xml”)}

      <# MD5 Hash Apply To New File Name #>

      Sleep 1

      Add-Type -AssemblyName System.Windows.Forms

      get-filehash $new -Algorithm MD5 | Format-Table -AutoSize Algorithm, Hash, Path, Size

      For the Format-Table command, I see all columns populated with data.    The only column I do not see populated with data

      is the “Size” Column.   I have a 100MB and 1GB file that have data being populated in the Algorithm, Hash, and Path columns but nothing in the Size column.

      Can someone help me here?

    • #261599
      Topics: 8
      Replies: 617
      Points: 2,393
      Helping Hand
      Rank: Community Hero

      You have been asked several times to format your code according to the guide you were linked several times. If you refuse to do that, why should anyone help you?

Viewing 1 reply thread
  • You must be logged in to reply to this topic.