| View previous topic :: View next topic |
| Author |
Message |
Sanjuro Contributor


Joined: 01 May 2003 Posts: 59 Location: Norfolk-United Kingdom
|
Posted: Tue Jun 17, 2003 8:41 am Post subject: Get folder size etc |
|
|
Probably being very dense here but i need to be able to get the details ( number of files and number of bytes) of a specific folder say c:\store.
I then have to save this info to a file for comparing with another c:\store folder on another machine.
Does anyone know a simple way of getting this info about a folder? I looked in the archives but didn't find anything.
TIA
Sanjuro _________________ "Apparently three out of four people make up 75 percent of the population.  |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Jun 17, 2003 1:27 pm Post subject: |
|
|
Hi Sanjuro,
what about using LIST FILELIST and then recursively going through the files listed to add the number of bytes of each file using @FILE
Serge _________________
|
|
| Back to top |
|
 |
Sanjuro Contributor


Joined: 01 May 2003 Posts: 59 Location: Norfolk-United Kingdom
|
Posted: Tue Jun 17, 2003 1:39 pm Post subject: |
|
|
Cheers Serge !
In the end I used a command line tool - DIR /-c > c:\result.txt on the folder concerned. Then i will parse this for the lines that read
25 File(s) 1392371 bytes
3 Dir(s)
Thanks fella...
Sanjuro  _________________ "Apparently three out of four people make up 75 percent of the population.  |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Jun 17, 2003 1:52 pm Post subject: |
|
|
your way will also work good
glad to help
Serge _________________
|
|
| Back to top |
|
 |
|