I have a list of around 3,000 codes in the format XZ0123. I need to create a batch file (.bat) for each code to allow me to create a main folder each with a number of sub folders (for Windows 7). The final file path, number of sub folders in each folder and folder names have yet to be determined.
The main folder will be called by the code name, e.g.
Main File
XZ0123
Sub Folders
Folder 1
Folder 2
Folder 3
Folder 4
Folder 5
The aim is to give me this for each of the 3,000 codes
batch.jpg
I'm trying to find a way to set this up but am struggling. I'm working on the basis of somehow being able to set up a file with several columns which I can then concatenate to give me the above.
The challenge is how to set this up for every code in the list because each code wil be repeated on several rows. Some columns are consistent e.g. column A, B, C, E, and G, others are not e.g. column F though it does follow a consistent pattern, (see the attached file). For each code on the list (on the 'Codes' tab), I need to be able to create the format shown on the 'Batch File' tab. Note column A and D are the only entries when setting up the folder (i.e. the first row for each code occurance) and all columns are needed to create the sub folders.
Once set up I can simply use Find and Replace when the file path and folder names have been defined.
The key here is that the number of sub folders could either increase or decrease, so I need a formula (or code) which can easily be adjusted that considers this.
Many thanks
Bookmarks