Windows command for file size only

后端 未结 12 1909
死守一世寂寞
死守一世寂寞 2020-11-27 16:12

Is there a Windows command that will output the size in bytes of a specified file like this?

> filesize test.jpg
65212

I know that the d

12条回答
  •  感情败类
    2020-11-27 16:50

    In PowerShell you can do:

    $imageObj = New-Object System.IO.FileInfo("C:\test.jpg")    
    $imageObj.Length
    

提交回复
热议问题