drm930
Technical User
- Oct 10, 2011
- 2
I am trying to move some files around and rename them, my files are specifically;
SUB_DOMAIN
index.htm
SUB_FOLDER1
index.htm
SUB_FOLDER2
index.htm
SUB_FOLDER3
index.htm
SUB_FOLDER4
index.htm
SUB_FOLDER5
index.htm
SUB_FOLDER6
index.htm
There are hundreds of SUB_DOMAINS all different city names - what I am trying to do is find a program that will place htm files with "matching" city names in the apporiate SUB_DOMAIN folder.
That part would be "if file name matches folder name move to folder name". BUT at that point I also want it to create a SUB_FOLDER (that I can specify the name) so it would be;
If .html file name matches SUB_DOMAIN folder name, then create SUB_FOLDER called #ANY-NAME-I-WANT# and place matching .html file of the SUB_DOMAIN folder into that newly created #ANY-NAME-I-WANT# folder and then rename the .html file to index.
SUB_DOMAIN
index.htm
SUB_FOLDER1
index.htm
SUB_FOLDER2
index.htm
SUB_FOLDER3
index.htm
SUB_FOLDER4
index.htm
SUB_FOLDER5
index.htm
SUB_FOLDER6
index.htm
There are hundreds of SUB_DOMAINS all different city names - what I am trying to do is find a program that will place htm files with "matching" city names in the apporiate SUB_DOMAIN folder.
That part would be "if file name matches folder name move to folder name". BUT at that point I also want it to create a SUB_FOLDER (that I can specify the name) so it would be;
If .html file name matches SUB_DOMAIN folder name, then create SUB_FOLDER called #ANY-NAME-I-WANT# and place matching .html file of the SUB_DOMAIN folder into that newly created #ANY-NAME-I-WANT# folder and then rename the .html file to index.