Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a list of folders on my network in a .txt, which are stored in different locations throughout the network. Looking for a tool or script to pull the size of those folders and output them to a txt/cvs files.

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted
@echo off
for /f %%d in (dirlist.txt) do (
   @echo %%d
   du -q %%d | findstr /B "Size.*disk"
   @echo.
)

You can get the du program from Sysinternals Disk Usage

share|improve this answer
add comment

I think Disk Usage will do that for you. At a minimum you can whip up a script that uses it to do what you want.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.