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!

Find, copy, rename, copy combo script

Status
Not open for further replies.

igator210

Technical User
Mar 15, 2012
1
US
I'm a complete novice at this, but looking for information on where to start:


Trying to make a utility that can scan a set of folders and subfolders for a certain file. If it finds this file it makes a copy in two places but also renames the file to the same name as the folder.

My folder / subfolder structure is:

1) Data Folder (master folder)
A) Daily Folder (unique, created daily)
i) Info Folder (unique, created daily)
a) Detail File (generic, created daily)
ii) Info Folder
a) Detail File
iii) Info Folder
a) Detail File
iv) etc
a) etc

I don't have any control over the naming of the Detail File (it is the data structure of the program). So, over the years, I have hundreds of generic Detail Files

I would like a program the would scan all the folders / subfolders looking for this generic Detail File, making a copy and renaming the copy the same name as the Info Folder. I'd also like a second copy of the renamed file placed in different master folder.

This is all for archiving and auditing purposes.

Nate
 
Finding your files of interest is a good place to start. faq329-5515 demonstrates how to recursively search for files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top