Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Replace files in multiple directory, from a single directory

14 Jan 2011   #1

windows 7 home premium
Replace files in multiple directory, from a single directory

I have a 10 files that have all been categorised into about 40 folders. These files have been damaged.
I have a backup of all these files, but they are not categorised and sit in a single directory.

Does anyone know of an easy technique to batch replace the damaged files with the originals?

Cannot find any apps to do such a task.

My System SpecsSystem Spec
14 Jan 2011   #2

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)

Easy one:

Built in command part of Windows. Open an elevated Command Prompt and type:

replace /?
Here is how:

Folder with Backup files:


Folders with corrupt files:


Replace c:\data\backup\*.* e:\finance\statements /s
My System SpecsSystem Spec
17 Jan 2011   #3

windows 7 home premium

Great! Easy. Thanks for that.
My System SpecsSystem Spec


 Replace files in multiple directory, from a single directory

Thread Tools

Similar help and support threads
Thread Forum
deleting files in tmp directory
is it safe to manually delete files in C:\Windows\Temp and C:\Users\admin\appdata\Local\Temp thanks in advance
General Discussion
Cannot change directory (CD) to a directory with space in the name
Following the directions outlined in including enabling command extensions outlined in does not permit the CD command to change the...
General Discussion
Files that I can delete off of Main HD directory
I am terribly sorry if I posted this in the wrong place. I couln't really find a catagory that this could go under. This is the closest. I am cleaning out my HD, I am at the main directory and I know deleting certain files (such as C:\Windows) would screw up the system. There is tons of files in...
Performance & Maintenance
C:\Recovery - directory ??? help lost files in this
Hi Folks, I was just operating file explorer... and I had some really important files and documents in my folder named C:\DOC\TAXES I was cleaning up C:\DOC folder and decided to temporarily MOVE the subfolder TAXES momentarily to C:\Recovery The MOVE operation completed. When I tried...
General Discussion
How do I search for multiple files in a particular directory
With windows 7 I don't seem to be able to find an advanced search option like XP has. I am trying to bring up multiple file types in a certain directory. In other words, in the programx directory, I want to find all files with the extension .aaa, .bbb, and .ccc. How do I do this in Windows 7?
General Discussion
32 bit app can only read files under its own directory?
I have an exe I wrote which works fine on 32 bit OSes. However my users who run 64 bit windows 7 tell me that it's only able to read files under the directory where the exe is installed. If they use the exe to read a file anywhere else on the file system is throws an error. I am assuming this...
System Security

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:36.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App