1.

Solve : create mulitiple folders fast?

Answer»

i have a text file that has over 1000 folder names, i have to creat a folder for each name in the text file. can anybody recommend a way to do this fast, using a program or dos command. I am current manually adding the folders Just google "creating multiple folders" and you'll find something.If the text file has the paths listed in a SIMPLE, line-by-line type of way, I'd create a batch program. For example, if my file had something LIKE:

c:\folder
c:\folder\nested
c:\folder\nested2 ..,etc

I WOULD add "md" to the beginning of each line, so it looked like:

md c:\folder
md c:\folder\nested
md c:\folder\nested2 ..,etc


And save that as a batch file. If it's not too FAR off from that format it'd be worth doing. You could run a search and replace function to change all the "c:\" into "md c:\"Quote

for /F "usebackq delims=" %%I in ("filename") do (
md %%I
)

Something like that?


Discussion

No Comment Found