Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modify Folder Structure

Status
Not open for further replies.

KRPGroup

MIS
Jun 22, 2005
317
CA
We have serveral thousand client folders that I need to add a subfolder with the same name. eg "Prev Yr"
Is there a way to add a folder if not already present under every "Clientxx" folder?

Before
A
Client01
Client02
B
Client01
Client02
Z


After
A
Client01
Prev Yr
Client02
Prev Yr
B
Client01
Prev Yr
Client02
Prev Yr
Z
 
If your file structure is as consistant and sequential as you have described, you could use a batch file to loop through the directory and at the specified intervals do a MD Prev Yr command. If not, well...

David
 
Can you give me some direction on where I could find some expample of the script. I am not sure on how to loop and have it go through all the folders from a specific point down.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top