1.

Solve : Making directories using a batch file?

Answer»

I am having trouble CREATING a batch file that reads a list of names from a "test.txt" file which contains names like bob,joe,bill each name is on a seperate line. I WANT to set up a batch file which will read test.txt and create a DIRECTORY C:\bob then ANOTHER directory c:\joe etc.... Can anyone help?You can make a FOR loop that does something like
FOR %%A in test.txt do MKDIR %A

You'll probably have to read the txt file into a variable first. But a FOR loop is definitely what you should be LOOKING at.



Discussion

No Comment Found