I have a text file as follows:
file.txt
1. Adams Johnson - VB
2. Mike Robert - C++
3. victor -java
... and so on for almost 700 entries in that text file
I have to create folders with each line of this text file using a batch file.
I have tried the following code:
@echo off
for /f "tokens=*" %%a in (file.txt) do (
mkdir %%a
)
but my folders are created as follows:
1
2
3
... so on...
Adams
Johnson
Mike
Robert
Victor
... so on...
I want it something like this:
1. Adams Johnson - VB
2. Mike Robert - C++
3. victor -java
... and so on.
How can I get that?