Discussion Locked

How do I create multiple sub-folders?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have over 4000 client folders on my NT server such as,
D:\Clients\A1234 Fred Bloggs Ltd
I need to create identical sub folders in each one for "Accounts", "Tax" and "Working Papers"
D:\Clients\A1234 Fred Bloggs Ltd\Accounts
D:\Clients\A1234 Fred Bloggs Ltd\Tax
Any ideas how to do this without pasting into each folder?

Thanks
Andy

3 replies

by lo

Hi - You din't specify an OS. On Win NT this should work. May on Win 98.
for /d %1 in ("clients\*") do md "%1\account"
repeat for other directories

If that isn't your os or doesn't work you can
dir client\* >credir.bat. Edit the file so that only the directory is there, then edit (copy/paste) each to call a .BAT that will create the directories. A programming editor will let you do a macro that will cleanup the file and/or copy line, paste, add each directory a bit easier. Mail me the directories in CLIENT\ and I will send you back .BAT files (tested even, I have Win NT v4.0 and Win 98, not sure of version). lo

This discussion is closed to new replies.