I have a string containing some names in comma ,
separated and I want to make make directories after splitting by comma ,
For example if the string is abc,def,ghi
Then I want to create 3 folders named as abc
and def
and ghi
I tried like this
@echo off&setlocal
set "data_set_path=def,ghi,jkl"
REM first split by commas
for /f "tokens=1-4 delims=," %%i in ("%data_set_path%") do set "pc1=%%i"& set "pc2=%%j"& set "pc3=%%k"&set "pc4=%%l"
<nul set/p"=1st split: %pc1% %pc2% %pc2% %pc4%"&echo(
I can split the string but I do know how to create folders with those names