1.

Solve : Create batch for making dirs with spaces?

Answer»

till now I've this
for /F  %%i in (c:\tempdos\klantenlijst.txt) do md %%i

putting the %%i in between "" doesn't work...

SOMEBODY knows how to do this?

klantenlijst.txt
-------------------
jef jansen
paul geerts
mady bogaerts
for /F  "tokens=*" %%i in (c:\tempdos\klantenlijst.txt) do md "%%i"Or Code: [Select]for /F  "delims=" %%i in (c:\tempdos\klantenlijst.txt) do md "%%i"And if you need to understand why it is because by default the data that is passed in a FOR loop is delimited by a SPACE and TAB.  So since your DIRECTORY NAMES have SPACES the loop variable was only being assigned the first token.



Discussion

No Comment Found