0

I'm trying to display the dirsize with a batch file but so far no luck. DU, dirsize gives me a not recognized as an internal or external command error.

This is my batch file so far, it displays all the dir's but not the size.

dir D:\test\test2
PAUSE 

Are there more commands to display dirsize?

Thanks

Arne Banck
  • 9
  • 1
  • 3
  • If you haven't found how to achieve what you're asking, take a look at the answer given on [stackoverflow](http://stackoverflow.com/questions/12813826/get-folder-size-from-windows-command-line) – dcg Mar 11 '17 at 03:10

1 Answers1

-1

You're right, after some researches I found this command :

C:\Users\TEMP>dir "C:\Users\TEMP\Desktop" | find "(s)"
           1 fichier(s)            2'253 octets
           2 Rép(s)  18'042'929'152 octets libres
Andre
  • 135
  • 7