Size
dir <file>
Bytes
Get-ChildItem <file> | Select-Object Name, Length
Bytes
wmic datafile where name='C:\\file.txt' get FileSize
Bytes
Convert to KB and rounds to 2 decimal places:
Convert to MB and rounds to 2 decimal places:
Convert to GB and rounds to 2 decimal places:
Last updated
Was this helpful?