P6FER
asked on
Script to create subdirectories
Hi experts,
I use about 1000 directories for my documents etc. but now I want to create sub-directories in each one. Thanks for the help
I have :
client1
client2
client3
...
And i want :
client1
-subA
----sub1
-------subK
-------subL
----sub2
-------subM
-------subN
----sub3
-------subO
-------subP
-subB
----sub1
-------subW
-------subX
----sub2
-------subY
-------subZ
client2
-subA
----sub1
-------subK
-------subL
----sub2
-------subM
-------subN
----sub3
-------subO
-------subP
-subB
----sub1
-------subW
-------subX
----sub2
-------subY
-------subZ
..........
I use about 1000 directories for my documents etc. but now I want to create sub-directories in each one. Thanks for the help
I have :
client1
client2
client3
...
And i want :
client1
-subA
----sub1
-------subK
-------subL
----sub2
-------subM
-------subN
----sub3
-------subO
-------subP
-subB
----sub1
-------subW
-------subX
----sub2
-------subY
-------subZ
client2
-subA
----sub1
-------subK
-------subL
----sub2
-------subM
-------subN
----sub3
-------subO
-------subP
-subB
----sub1
-------subW
-------subX
----sub2
-------subY
-------subZ
..........
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Just perfect obda. :-)
You just have to change :
You just have to change :
for /d %%a in ("%Target%\*.*") do (
to :for /d %%a in ("%Target%*.*") do (
Thank you
Only if you're setting Target to a mask including a part of the actual client folder name, like "D:\Clients\Client*.*"; Target was supposed to point to the root folder containing the client1, client2, ... folders (guess I should have mentioned that).
Open in new window
~bp