1.

Solve : Making multiple directories from a wordlist .txt file??

Answer»

Is it possible to make multiple DIRECTORIES for each word from an alphabetical list stored in a txt file?

EXAMPLE: Take the first page of words from a dictionary and create a directory for each
word down the list.

Another poster TOLD me about using the for loop but I admit I don't really understand about that.



effectively you can use the FOR CMD,
for that i think i can help you,

it must be like that:

Code: [Select]FOR /F %%i IN list_of_word.txt DO mkdir %%i

but to create it by extracting the first word of file i don't know!
sorry !!In order to use only selected parts of a (delimited) line of text, use /F with the "tokens" and "delims" parameters -

for /F "tokens=3 delims=," %%i in (myfile.txt) do @echo %%i

echoes the third item in a comma delimited list.Code: [Select]for /F "tokens=*" %%z in (YourListHere.txt) do @mkdir %%z


Thanks guys, I got it WORKING from your help.



Discussion

No Comment Found