Replace files in multiple directory, from a single directory


  1. Posts : 2
    windows 7 home premium
       #1

    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 Computer


  2. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #2

    Easy one:

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

    Code:
    replace /?
    Here is how:

    Folder with Backup files:

    C:\Data\Backups

    Folders with corrupt files:

    E:\Finance\Statements\2001
    E:\Finance\Statements\2002
    E:\Finance\Statements\2003
    E:\Finance\Statements\2004
    E:\Finance\Statements\2005
    E:\Finance\Statements\2006
    E:\Finance\Statements\2007

    Code:
    Replace c:\data\backup\*.* e:\finance\statements /s
      My Computer


  3. Posts : 2
    windows 7 home premium
    Thread Starter
       #3

    Great! Easy. Thanks for that.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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:01.
Find Us