faqts : Computers : Operating Systems : Microsoft : bilal

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 5 people (0%) answered Yes
Recently 0 of 5 people (0%) answered Yes

Entry

XP: How to merge duplicate files in different directories to 1 directory containing all files?

Sep 3rd, 2005 18:20
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 04 September 2005 - 01:45 am ------------------

XP: How to merge duplicate files in different directories to 1 
directory containing all files?

---

Method: Using wildcard rename in MSDOS

Steps: Overview:

 1. -Open an MSDOS box

     1. -Click button Windows 'Start'

     2. -Select from list 'Run'

     3. -Type the command

          cmd

     4. -Click button 'OK'

 2. -Goto each of the involved directories

     1. On the MSDOS command line write the
        command

         cd mydirectory1

     2. Rename all the files in this directory
        to a unique filename

        1. On the MSDOS command line write

         e.g.

          ren *.* unique1_*.*

         e.g.

          ren *.* <some unique identifier which does not occur in the 
other directories>*.*

 3. -Move or copy all the files in the involved different
     directories to 1 common directories.

     1. you have done a unique rename for all
        involved directories, then the filenames
        in all directories should be unique.
        So merging this files in 1 big directory
        as there are no duplicate filenames
        can be done without overwriting duplicate
        files.

---
---

Tested successfully on
Microsoft Windows XP Professional (service pack 2)

---
---

Internet: see also:

---

Operating system: Microsoft: Windows: XP: Link: Overview: Can you give 
an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/34878/fid/868

----------------------------------------------------------------------