Get Folder Size from Windows Command Line

前端 未结 17 2379
滥情空心
滥情空心 2020-11-28 18:52

Is it possible in Windows to get a folder\'s size from the command line without using any 3rd party tool?

I want the same result as you would get when right clicking

17条回答
  •  借酒劲吻你
    2020-11-28 19:50

    I think your only option will be diruse (a highly supported 3rd party solution):

    Get file/directory size from command line

    The Windows CLI is unfortuntely quite restrictive, you could alternatively install Cygwin which is a dream to use compared to cmd. That would give you access to the ported Unix tool du which is the basis of diruse on windows.

    Sorry I wasn't able to answer your questions directly with a command you can run on the native cli.

提交回复
热议问题