xenium
asked on
XCOPY folder sizes
Hi, i want to list folders (and all subfolders) with total size of each folder.
Can i do this with a simple line command in xcopy?
Thanks
Can i do this with a simple line command in xcopy?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi xenium,
Try:
http://uk.geocities.com/xshareware/download/xdir.zip
command line
xdir /S "/form=*f,*S" /dirs /nofiles
Manual here:
http://uk.geocities.com/xshareware/manuals/xdir_manual.htm
Paul
Try:
http://uk.geocities.com/xshareware/download/xdir.zip
command line
xdir /S "/form=*f,*S" /dirs /nofiles
Manual here:
http://uk.geocities.com/xshareware/manuals/xdir_manual.htm
Paul
ASKER
leew, thanks - was the simple example you gave i needed.
ASKER
Alternative solution without any tools... produces a not-very-friendly listing but works:
dir *.* /s/a >_size.txt
find /v ":1" _size.txt > size.txt
find /v ":2" size.txt > _size.txt
find /v ":3" _size.txt > size.txt
find /v ":4" size.txt > _size.txt
find /v ":5" _size.txt > size.txt
find /v ":6" size.txt > _size.txt
find /v ":7" _size.txt > size.txt
find /v ":8" size.txt > _size.txt
find /v ":9" _size.txt > size.txt
find /v ":0" size.txt > _size.txt
find /v "----------" _size.txt > size.txt
del _size.txt
dir *.* /s/a >_size.txt
find /v ":1" _size.txt > size.txt
find /v ":2" size.txt > _size.txt
find /v ":3" _size.txt > size.txt
find /v ":4" size.txt > _size.txt
find /v ":5" _size.txt > size.txt
find /v ":6" size.txt > _size.txt
find /v ":7" _size.txt > size.txt
find /v ":8" size.txt > _size.txt
find /v ":9" _size.txt > size.txt
find /v ":0" size.txt > _size.txt
find /v "----------" _size.txt > size.txt
del _size.txt
Sorry, I didn't get back to the question in time to give the example - that was the help file given by GaryGuru - I'd appreciate it if you'd split the points.
ASKER
PaulCaswell, thanks for tip - may be useful but i not tested it - diruse working fine.
ASKER
Oops, i didn't even notice it was someone else was answering!
Ed - pls re-open or split for leew/GuruGary
Ed - pls re-open or split for leew/GuruGary
>>may be useful but i not tested it
Try it, you'll like it. You can do a whole lot of things with files and folders. I ought to know, I wrote it! {-)
Paul
Try it, you'll like it. You can do a whole lot of things with files and folders. I ought to know, I wrote it! {-)
Paul
Note: Your Dir/find solution won't actually get you accurate information - IF there are folders you don't have access to. Diruse is not limited by security - it's the only utility I've found that isn't. I haven't checked it, but I THINK PaulCaswell's will have the same security problem.
Security as in NTFS permissions don't permit you access.
Security as in NTFS permissions don't permit you access.
>>will have the same security problem
It almost certainly does! I'd never thought to test it in that environment. Thanks!
Paul
It almost certainly does! I'd never thought to test it in that environment. Thanks!
Paul
I consider a good test - find a machine with System Restore (and the System Volume Information folder) and use DIRUSE to check the size. Then use your util. Likewise, setup some folders that you don't have access to and see what happens. Would love to see another util work... but so far...
ASKER