How to list all folder with size via batch file

后端 未结 6 1326
故里飘歌
故里飘歌 2020-11-30 10:08

I want a simple solution for list of folders and size of them in either txt or csv format.

I use this code for folder list

dir C:\\Temp\\*.* /b /a:d          


        
6条回答
  •  再見小時候
    2020-11-30 11:09

    if you are using windows 7 or new use powershell and type command

    ls- r >> log.txt

    it will list all the files in current directory along with file size in bytes to log file.

提交回复
热议问题