How can I use a Wildcard on a directory in batch

Viewed 38

OK, here I fond how to use Wildcard on a folder
To use * it needs to be the last thing is your director
as you can see here ("Original2\*") the wildcard is last so add more folders you can do this
This will help to use wild cards on multiple folders

@ECHO OFF
    
    set "folder="
    
    for /D %%b in ("Original2\*") do (
     for /D %%c in ("%%~b\Now the Next folders\*") do (
                set "file=*Hot*.txt"
                md "%%b\Texas"
                set "folder=%%~d"
     )          
    )
    echo "%folder%"
0 Answers
Related