I want to modify this script. I can't get it to accept wildcard charcters:
@echo off setLocal EnableDelayedExpansion set /a value=0 set /a sum=0 FOR /R %1 %%I IN (*) DO ( set /a value=%%~zI/1024 set /a sum=!sum!+!value! ) @echo Size is: !sum! k
It is in a batch file called dirsize and is called like so:
I want it to check the folder sizes for me. This one here is an example, the cache in firefox:
It returns the value 0.
But if I go
It works and I get the value 55322 returned.