Creating multiple of the same folder in different locations.

Status
Not open for further replies.

UberNoobSB

Reputable
Jan 19, 2016
1
0
4,510
Hi, I work in an accountancy and we have a different folder for each client we have. In each of these client's folders, I need to make a folder called "2016", as they are organised into years. Is there anyway of doing this for each client folder all at once? Thanks in advance!
 
Solution
I assume you got all accounts in one folder:

like
X:\accounts\acc1
X:\accounts\acc2

and you want to create subfolder
X:\accounts\acc1\2016
...

In this case use this command in command line (you can open command line when you type cmd into search box on windows)

for /D %G in (X:\accounts\*) DO mkdir %G\2016

replace X:\accounts for path to your accounts folder. This command will list all subfolders in specific folder (X:\accounts) and create in each of those subfolders another subfolder named 2016

You can try it on some test folder to see if it do what you want.
I assume you got all accounts in one folder:

like
X:\accounts\acc1
X:\accounts\acc2

and you want to create subfolder
X:\accounts\acc1\2016
...

In this case use this command in command line (you can open command line when you type cmd into search box on windows)

for /D %G in (X:\accounts\*) DO mkdir %G\2016

replace X:\accounts for path to your accounts folder. This command will list all subfolders in specific folder (X:\accounts) and create in each of those subfolders another subfolder named 2016

You can try it on some test folder to see if it do what you want.
 
Solution
Status
Not open for further replies.