I would like to create a lot of folders at once. I have a text file that contains all the names I need. But I'm not able to use this file as an "input".
Here's my code:
for /F "tokens=*" %%A in (listfolder.txt) do (
set name=%%A
xcopy /i /e "C:\Users\Documents\00 template" "C:\Users\Documents\%name%"
)
I also tried
xcopy /i /e "C:\Users\Documents\00 template" "C:\Users\Documents\" AND %name%
and
xcopy /i /e "C:\Users\Documents\00 template" "C:\Users\Documents\" AND %%A
Can someone explain me what I'm doing wrong? Pretty new to batch - For example, "tokens=*"
I don't get the reason behind this. I just find the information on internet.
Thanks all,