Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Bulk Find/Copy/Rename Files

Mar 14, 2012 10:57PM PDT

Trying to find 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 Info File (it is the data structure of the program). So, over the years, I have hundreds of generic Info Files

I would like a program the would scan all the folders / subfolders looking for these Detail File, making a copy and renaming the copy the same name as the Info Folder. In a perfect world, 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

Discussion is locked

- Collapse -
A typical case ...
Mar 14, 2012 11:11PM PDT

of having to use a VBSCRIPT that uses the filesystemobject. Should take less than a day for anybody with the right experience to make it for you.

Powershell might be an option also, but as I don't have any experience with that, I can't tell.

Kees

- Collapse -
Easy job for XYplorer using scripting
May 24, 2012 5:19PM PDT

XYplorer is a file manager that natively supports scripting. An experienced XYplorer scripter will write this in 15 minutes. You might post your task description in their scripts forum:
http://www.xyplorer.com/xyfc/viewforum.php?f=7

Don