Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch: size of folders from a list  (Read 3072 times)

0 Members and 1 Guest are viewing this topic.

balianx

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Windows 7
    Batch: size of folders from a list
    « on: September 12, 2013, 05:57:19 AM »
    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!