From a win32 dos command box we can execute the dir command that shows the total free bytes on disk in the last line:
Directory of C:\temp
21/10/2008 12:53 <DIR> .
21/10/2008 12:53 <DIR> ..
21/10/2008 12:53 0 free.txt
1 File(s) 0 bytes
2 Dir(s) 142.985.986.048 bytes free
With the findstr command you can exclude string data from a command. I was trying to get the free bytes value from the last line 142.985.986.048 so i can put it in a variable.
Anyone that can help me a bit?
C:\>findstr /R "<<regular expression needed here>" |dir
more info on the findstr win32 command: