Dos Command/Batch file to find a folder size
Solved/Closed
trusp
Posts
4
Registration date
Wednesday December 3, 2008
Status
Member
Last seen
December 5, 2008
-
Dec 4, 2008 at 06:41 AM
Mandarilho - Dec 18, 2012 at 10:26 PM
Mandarilho - Dec 18, 2012 at 10:26 PM
Related:
- Command prompt folder size
- Cmd dir size - Best answers
- Dos size - Best answers
- Rename computer command prompt - Guide
- Anvi folder locker reset key - Guide
- Mtu size calculator - Guide
- Fifa 23 pc download size - Download - Sports
- Cs 1.6 money command - Guide
5 responses
trusp
Posts
4
Registration date
Wednesday December 3, 2008
Status
Member
Last seen
December 5, 2008
43
Dec 5, 2008 at 04:50 AM
Dec 5, 2008 at 04:50 AM
Hi Boris,
Thank you very much for your respond.
I copied this script and executed as you specified. But not got any solution.
The following was been displayed in CLI.
C:\>Test.cmd C:\Sample
'selLocal' is not recognized as an internal or external command,
operable program or batch file.
Missing operator.
Missing operator.
Missing operator
....
Size is: !value!
So I put @echo on and the CLI executed as shown below:
C:\>Test.cmd C:\Sample
C:\>selLocal EnableDelayedExpansion
'selLocal' is not recognized as an internal or external command,
operable program or batch file.
C:\>set /a value=0
C:\>FOR /R C:\Sample %I IN (*) DO set /a value=!value!+%~zI
C:\>set /a value=!value!+3064
Missing operator.
C:\>set /a value=!value!+2672
Missing operator.
C:\>set /a value=!value!+6135
Missing operator.
C:\>set /a value=!value!+5
Missing operator.
C:\>set /a value=!value!+2
Missing operator.
Size is: !value!
Please Help me out in this.
Say where I made mistake ?
I need this very urgent. So please...
Thank you very much for your respond.
I copied this script and executed as you specified. But not got any solution.
The following was been displayed in CLI.
C:\>Test.cmd C:\Sample
'selLocal' is not recognized as an internal or external command,
operable program or batch file.
Missing operator.
Missing operator.
Missing operator
....
Size is: !value!
So I put @echo on and the CLI executed as shown below:
C:\>Test.cmd C:\Sample
C:\>selLocal EnableDelayedExpansion
'selLocal' is not recognized as an internal or external command,
operable program or batch file.
C:\>set /a value=0
C:\>FOR /R C:\Sample %I IN (*) DO set /a value=!value!+%~zI
C:\>set /a value=!value!+3064
Missing operator.
C:\>set /a value=!value!+2672
Missing operator.
C:\>set /a value=!value!+6135
Missing operator.
C:\>set /a value=!value!+5
Missing operator.
C:\>set /a value=!value!+2
Missing operator.
Size is: !value!
Please Help me out in this.
Say where I made mistake ?
I need this very urgent. So please...
May 15, 2009 at 04:53 AM
Google could have told you this, try googling: sellocal batch script
In the first line, google will say "Did you mean setlocal?".
Have fun.
Dec 19, 2009 at 06:16 AM
Sep 21, 2011 at 04:38 AM
Awesome!
Dec 18, 2012 at 08:38 PM