PC Applications forum

General discussion

Bulk Find/Copy/Rename Files

by igator210 / March 14, 2012 10:57 PM 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

Post a reply
Discussion is locked
You are posting a reply to: Bulk Find/Copy/Rename Files
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Bulk Find/Copy/Rename Files
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
A typical case ...
by Kees_B Forum moderator / March 14, 2012 11:11 PM 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
by giant impact / May 24, 2012 5:19 PM 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

Popular Forums
icon
Computer Help 47,885 discussions
icon
Computer Newbies 10,322 discussions
icon
iPhones, iPods, & iPads 3,188 discussions
icon
Security 30,333 discussions
icon
TVs & Home Theaters 20,177 discussions
icon
HDTV Picture Setting 1,932 discussions
icon
Phones 15,713 discussions
icon
Windows 7 6,210 discussions
icon
Networking & Wireless 14,510 discussions

Tech for the school year

Smart tech for smart students

Forget the pencils and notebooks. Gear up your students with these portable and powerful note-taking machines.