Labels

Wednesday, 20 March 2013

Creating X numbers of Directories through batch scripting


Creating X numbers of Directories through batch scripting

setlocal enableextensions enabledelayedexpansion
set /a "x = 0"
:while1
    if %x% leq 10 (
        echo %x%
        MkDir "Folder %x%"
        echo. 2>"Folder %x%"
        set /a "x = x + 1"
        goto :while1
    )
endlocal

No comments:

Post a Comment