1.

Solve : Batch: size of folders from a list?

Answer»

Hello,

I have this script:

Code: [Select]echo off
setlocal
set /p DIRNAME=Enter Directory Name:

for /F "tokens=3-4" %%v in ('dir "%dirName%" /s ^| find /i "file(s)"') do (
  set BYTES=%%v


echo FOLDER: %dirName% contains %bytes% bytes

pause
The problem is I want to import from a .txt file with various directory folders.

How can I do that?


Thank you!



Discussion

No Comment Found