Adding two new directories

January 5, 2010 at 17:11:31
Specs: Windows XP
Hi there,
I have a requirement where I need to be able to write a batch to create two new folder in a specific sub-directory.

The file structure is large and so multiple instances need to be created. There is however a common number of sub-directories to the directory where I need to add in the new folders each time in the file tree. Is there a way to count the number of sub-directories you have traversed from a root directory via script and then be able to create the new folders each time?

Thanks in advance.

See More: Adding two new directories

Report •

January 5, 2010 at 23:12:09
So do you need to count and find out how deep a given directory is?

Helping others achieve escape felicity


Report •

January 6, 2010 at 00:29:59
Hey mate, thanks for your reply.

Yep exactly I need to confirm how deep I am within a given directory and then add new directories say for example when I'm 6 sub-directories deep from the root then make two new directories within that sub-directory.

Any ideas much appreciated.

Report •

Related Solutions

Ask Question