Hi guys just wondering if u can help me modify this script that ive been playing around with, i cant 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
Its in a batch file called dirsize and is called like so
dirsize c:\folder
I want it to check folder sizes for me, this one here is an example, the cache in firefox
dirsize C:\users\%username%\AppData\Local\Mozilla\Firefox\*.default\Cache
Returns the value 0
But if I go
dirsize C:\users\%username%\AppData\Local\Mozilla\Firefox\sr1znnb4.default\Cache
It works and I get the value 55322 returned.. Help me please? Thank you in advance kind people