Dos Command/Batch file to find a folder size
Solved/Closed
                    
        
                    trusp
    
        
                    Posts
            
                
            4
                
                            Registration date
            Wednesday  3 December 2008
                            Status
            Member
                            Last seen
             5 December 2008
            
                -
                             4 Dec 2008 à 06:41
                        
Mandarilho - 18 Dec 2012 à 22:26
        Mandarilho - 18 Dec 2012 à 22:26
        Related:         
- Command prompt folder size
- Cmd dir size - Best answers
- Dos size - Best answers
- Send message through command prompt - Guide
- Mtu size calculator - Guide
- Rename computer command prompt - Guide
- Disable deep freeze from command prompt - Guide
- Cs 1.6 money command - Guide
5 responses
                
        
                    trusp
    
        
                    Posts
            
                
            4
                
                            Registration date
            Wednesday  3 December 2008
                            Status
            Member
                            Last seen
             5 December 2008
            
            
                    43
    
    
                    
5 Dec 2008 à 04:50
    5 Dec 2008 à 04:50
                        
                            
                    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...
 
        
    
    
        
    
    
    
15 May 2009 à 04:53
Google could have told you this, try googling: sellocal batch script
In the first line, google will say "Did you mean setlocal?".
Have fun.
19 Dec 2009 à 06:16
21 Sep 2011 à 04:38
Awesome!
18 Dec 2012 à 20:38