More than 25,000 files, a directory, write more simular names unless 'modified' date is different

Hi all

I came across an interesting task. I got a directory that keeps documents (word, excel, pdf).

The problem is that the last owner of the directory would create folders such as the 'year' than to create a separate cover for a "subject" to copy the file in each folder. If a different topic and/or year used the same file, it would copy it into all subdirectories that apply. He would edit each file individually or not at all.

Over time, it has created more than 25,000 files. So my task is to:

  1. Move all the files in a directory.

    1. Delete all subfolders
  2. Replace the similar files
    1. Keep the files with the same name but different dates of updating the

There are approximately 15 300 conflicts of files... How to listen to this process instead of just going through the line and click on ' move and replace or ' move, but keep both files ' on all 15 000 files.»

Is it possible to have the computer overwrite all files that are 1? Named the same 2. Date of update the same, to keep files with 1. Same name 2. Different modification date.

Example of

Part 1

File1.doc "change: 12/06/2013.

File1.doc "change: 12/06/2013.

Result: Crush him. File1.doc

Part 2

File1.doc "change: 12/06/2013.

File1.doc ' modification: 02/11/2014.

Result: Keep each files File1.doc, and file1 (2) .doc

I think you could do this with a few very carefully created batch or PowerShell traverses the directories, but it is certainly not an easy task.

I would dump all the files in a single directory, then just run a real program of double killer (I have a good one in my OneDrive here if you want to use it).  Then you will be left with files all really unique, no duplicates of all, actually run the two examples you listed in one fell swoop.

Tags: Windows

Similar Questions

  • Dreamweaver crashes when the site is more than 10,000 files

    Hi people!

    I'm new here. I use Dreamweaver on a Mac Yosemite and after that I started working on a site with more than 10,000 files, it always crashes.

    Only when I change to another site no way that a lot of files that Dreamweaver works ok, but if I run a big site.

    Y at - it someone with the same problem?

    Anderson Costa

    10,000 files in a static site is quite monstrous for DW, it could be a caching problem, I try to turn it off...

    Access the Site > Manage Sites > click the huge site > Edit > advanced settings > local news > uncheck enable Cache > save

    Then try something that normally causes an accident and see if it works.

  • More than 10,000 files PDF

    I have a huge database of PDF files.  I need to get them in a single file so that they are available.  There are more than 10,000 PDF files that are copies of real estate documents.  What kind of file size constraints facing them?  Is there a way to have a 'front end' to search for files without having to use the main screen in Acrobat?

    There is no need to combine the files in order to find them. You can use the advanced search of Acrobat command and select this option to search for an entire folder.

  • Why did I not more 74 000 files in more than 4,000 files taking up beyond 1 GB in my Cache folder (I also have a much smaller Cache2 folder)?

    As far as I know, I did nothing to create all these files. They slow down disc scans and as far as I know I need one. I can simply remove all but one, or is there a reason for them being there?

    What of the folder Cache (2)?

    They should be deleted. If Firefox crashes for this session cache files cannot be deleted. Records may not get deleted at all. Certainly to empty your cache files. If you delete while Firefox is running, then you will be able to clear all except those that Firefox is actually using the session.

    After you have emptied your cache of the old files and folders, it would be useful if you have disabled your Internet Explorer cache files also.

    To help reduce the problem, clear your cache files when Firefox ends.

  • Several files of more than 500,000 KB in the c:\windows\temp folder

    More than 500,000 Ko I have several files in the c:\windows\temp folder. They are all named as TOP * .tmp and are all together like 7 GB.

    Issues related to the:
    1. What is UPSTAIRS * .tmp files?
    2. may I remove them?
    3. If Yes, do, I lost?

    OS: Windows Vista editions Home Premium on Sony Vaio VGN-NR11Z

    More information about the files:
    ------------------------------------------------------------------------------------------
    System - folders for temporary files 7.847.221 826 KB
    ------------------------------------------------------------------------------------------
    C:\Windows\TEMP\TOPF54E.tmp 532,249 KB
    C:\Windows\TEMP\TOPF310.tmp 532,249 KB
    C:\Windows\TEMP\TOPE604.tmp 532,249 KB
    C:\Windows\TEMP\TOPCD63.tmp 532,249 KB
    C:\Windows\TEMP\TOPC151.tmp 532,249 KB
    C:\Windows\TEMP\TOP71FD.tmp 532,249 KB
    C:\Windows\TEMP\TOP7107.tmp 532,249 KB
    C:\Windows\TEMP\TOP6D2F.tmp 532,249 KB
    C:\Windows\TEMP\TOPB901.tmp 329,440 KB
    C:\Windows\TEMP\TOPC7B3.tmp 329,344 KB
    C:\Windows\TEMP\TOPC503.tmp 329,344 KB
    C:\Windows\TEMP\TOPB854.tmp 329,344 KB
    C:\Windows\TEMP\TOPAB02.tmp 329,344 KB
    C:\Windows\TEMP\TOP5D30.tmp 329,344 KB
    C:\Windows\TEMP\TOP5996.tmp 329,344 KB
    C:\Windows\TEMP\TOPC7C8.tmp 186,240 KB
    C:\Windows\TEMP\TOPC47D.tmp 186,240 KB
    C:\Windows\TEMP\TOP9AFC.tmp 186,240 KB
    C:\Windows\TEMP\DZSEFDA.tmp 155,840 KB
    C:\Windows\TEMP\TOPCA78.tmp 113,280 KB
    C:\Windows\TEMP\TOP9BFB.tmp 93.312 KB
    C:\Windows\TEMP\TOP99C8.tmp 93.312 KB
    C:\Windows\TEMP\TOP863B.tmp 93.312 KB
    C:\Windows\TEMP\TOP490D.tmp 93.312 KB
    ...

    All ALBUMS * .tmp files have now updated the 25.10.2009 and about the same time.

    Thank you for your response.

    Kind regards
    Andrej

    Hello

    Thank you for the additional information.

    Yesterday, I decided to register on IT * files .tmp on DVD and I removed them from the TEMP directory. I decided to do it because none of the processes they used at the time of my comment. I compared the the event logs for any new warnings or errors, but mistakes are appearing as before removal. The errors are:
    -The parallel port driver service failed to start due to the following error: the service cannot be started, either because it is disabled or because it has no enabled devices is associated to him.
    -Could not load the plug-in module. (GUID = {56F9312C-C989-4E04-8C23-299DEE3A36F5}) (Error code = 0 x 80042019)

    I haven't checked on the first error, but it appears in the system log because I erased the corrupt system log - also before deleting the files.
    The second is well known 'Vaio Entertainment Database Services' error (in the application log) and everyone invites you to remove this service from startup list. So maybe I'll do it.

    My Vaio has now extra 7.5 GB of free space and has no performance or other problems (so far).

    Today, I tried this (sfc/scannnow) system scan and the log is perfectly clean. Nothing has been repaired.
    Also checkdisk returns nothing abnormal so I think the albums * .tmp not fail at any other SW. The other issue is how they were created, but as my log files have been corrupted (another known problem of vista), I will probably never know the answer.

    If new sth will appear on the subject (e.g. new TOP * .tmp files), I'll write again.

    Thank you once again.

    Andrej

  • Microsoft Update has a facility to check the history of updates, but it is not a facility in order to eliminate programs that were not updated, if the file has more than 6,000 entries?

    Microsoft Update offers an easy to install updates automatically, but a few times the process fails, leaving the record of the proceedings of breaking, this could happen for days even months and one day the process finished OK and also leaves the track of it, but she's not erase records of installation failures, because the file is a regular file , (this is not a data base), is there some facility to clean the file, he's great at more than 6,000 entries.

    Hello

    Thanks for posting in the Microsoft Community Forum, please be assured that we would do our best to help you.

    We cannot delete entries for updates failed, but we can remove all entries available in the Windows Update history.

    Rename the Windows Update temporary download folder and check:

    To rename the Windows Update temporary download folder, follow these steps:

    Important After you rename the temporary download folder, the updates that you have already downloaded but you have not yet installed must be downloaded from Windows Update or from Microsoft Update.

    In Windows XP, in Windows Server 2003 and Windows 2000, follow these steps:

    1. start Notepad. To do this, click Start, and then click run.

    2 copy and then paste (or type) the following command in the Open box, and then press ENTER:

    notebook

    3. copy and paste (or type) the following command lines in the Notepad window:

    net stop wuauserv
    CD %systemroot%\SoftwareDistribution
    Ren Download.old download
    net start wuauserv

    4. on the file menu, click on record underand type Rename.bat.

    5. click on record underand then click all files.

    6. save the Rename.bat file to your desktop.

    7. double-click on the file Rename.bat to rename the download folder.

    8. try to install the updates again.

    9. check if the Windows update history entries are removed.

    Hope this information helps. If you have any questions do not hesitate to answer, we would be happy to help.

  • My firefox will more than 125,000 K

    Hi guys, I installed on my computer Mozila Firefox the latest version of 12.12.2013 and it's going more than 125,000 K, even if I'm on the Google page, even if I open it in safe mode, even if I create a new profile and I tried this.

    I run as Windows 7 Ultimate 32 bit.
    Sapphire hd 4650 AGP - 1024 MB graphics card
    Memory - 1024 MB.
    Processor amd sempron 3300 +.
    ATX P4 power supply - 400W
    Card mother K8upgrade-nf3

    So, what's the problem, what do I do next?

    I think that it is a normal use.

    Date of arrival:
    Firefox using too much memory (RAM) - how to fix

    You can also see what memory is used for on the subject: memory page.

  • I use iPhoto and have more than 6,000 images in the main library.  I have 7000 images in my iPhoto trash, some of which are duplicates of images in the main library.  If I delete the Recycle Bin will be double in the main library also deleted images?

    I use iPhoto and have more than 6,000 images in the main library.  I just realized that I have 7000 images in my iPhoto trash, some of which are duplicates of images in the main library.  I need to remove the iPhoto trash, but if I take these are images in the main library deleted duplicate or are they "separated" as soon as they are to the iPhoto trash?

    Empty iPhoto trash removes only the versions in the trash, not the versions that you still have in your events.

  • I find these records long name with 20 or more charactors and inside them is nothing else than "mrt.exe" file. I find them in random places.

    Original title: MRT. EXE files are all over my computer.

    I find these records long name with 20 or more charactors and inside them is nothing else than "mrt.exe" file. I find them in random places on my drive c: and many of them on my external G drive in the root. A new appears approximately every three months.

    I know the mrt.exe is supposed to have something to do with the malicious software removal tool, so I don't want to just delete them and have a problem.

    Allen

    Hello

    Are you prevents the tool from running?

    See Q21 at the end of this article

    The Microsoft Windows malicious software removal tool helps remove specific and prevalent malicious
    software for computers running Windows 7, Windows Vista, Windows Server 2003, Windows
    Server 2008, or Windows XP
    http://support.Microsoft.com/kb/890830

    What you do not know the Windows Malicious Software Removal Tool
    http://blogs.Computerworld.com/what_you_dont_know_about_the_windows_malicious_software_removal_tool

    What is Windows Malicious Software Removal Tool (mrt.exe) and how to use it
    http://www.vista4beginners.com/Windows-malicious-software-removal-tool?page=1

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • More than 8,000 critical errors on the laptop. What should I do about these?

    Original title: critical errors

    I have more than 8,000 critical errors on my laptop, which, on the contrary, should I do about these?

    Hello

    How do you know that you have these errors?

    If someone called you and told you that, it's a scam.

    If you have downloaded a Tuneup program and he told you that it is a scam.

    We need more information from you to be able to help you.

    "Suggestions for a question on the help forums.

    http://support.Microsoft.com/kb/555375

    See you soon.

  • How can I make my program works with more than 100 class files?

    As soon as my program generates more than 100 class files I get the following error: cannot run program "jar": CreateProcess = 2 error, the system cannot find the file specified. Is there a way I can increase this limit? My program is small. There must be way to work and Add again all the features I need to add. Thank you

    I got it to work. I reinstalled the JDK, then set the path in the environment variable, restarted eclipse and it worked. It's still a mystery why it worked until I got 100 classes.

  • Type of chain with more than 4,000 characters

    Hi gurus of the Oracle,.

    I need a column with a string data type and the length of the data should be more than 4,000 characters. the column has a composite primary key.

    I tried with CLOB, but unable to impose constraints on this column.

    Please help me in this regard

    Thanks in advance.

    REDA

    Calculate a hash value and make a unique constraint on this one here.

    HTH

  • ORA-00338: 3 log thread 1 is more recent than the control file

    Hello

    I met the error ORA-00338 while performing the recovery of incomplete data:

    ORA-00283: cool cancelled due to errors
    ORA-00338: 3 log thread 1 is more recent than the control file
    ORA-00312: wire 3 1 online journal: "+ DG_REDO/dbase/onlinelog/group_3.267.814820795".
    Complete recovery manager.

    I made this recovery on oracle 10g, database of ASM.

    1. What are the possible causes of this error ORA-00338?

    2. This error occurs at the beginning of the media recovery, RMAN is applying logs archived. If RMAN does newspapers "Online REDO" after applying "archived" logs required for recovery or in front of them?

    3 rman is how this journal in line 3 is more recent than the control file? How can I me SNA of the journal online & file control in my environment?

    Here are some details related to checkpoint scn / change # info. I found in my environment:
    Before recovery:
    view
    v$ datafile: 642935
    v$ datafile_header: 642935
    v database $: 642935
    Journal of v$: 640956

    After the recovery fails (ORA 338 :()
    v$ datafile: 640917
    v$ datafile_header: 640056
    v$ database: 640906
    Journal of v$: 640906

    You could try the incomplete recovery has to do only the RESTORE DATABASE with RMAN.
    Then, using the SQLPLUS command line, issue a RECOVER database with the HELP of BACKUP CONTROLFILE until CANCEL. See which he records guests for and monitor messages in the alert.log

    Hemant K Collette

  • Why cannot query a file more than once using file adapter...

    Hi all

    When we run this webservice, as I am with adapter file to read/write the file information.
    Usually, file adapter reads all the files and it will not read again the same file which already red.
    Where and how this status maintained by adapter/BPEL file in the system.

    Where it will be available and why slope adapter File read/poll the same file.

    Pls one of you can share your ideas on the same.

    Thank you.

    Change the time stamp of the file.

    Then the adapter FTP or file will get the file again.

    Thank you
    Vijay

  • Toshiba 1 TB Store 'cannot copy '. "the file or directory could not be created.

    I am trying to transfer a little less 5 GB 36 996 zip data files on a network drive on my brand new Toshiba 1 TB drive. I created a directory "E:\TOSHIBA\2008-Dec" in the root but only 16386 files copied. If I try to copy files over I get windows error message "Failed to copy" "file or directory could not be created.

    Obviously the disk space should not be a problem. Any ideas? Thank you.

    What happens if you try to copy another file on the HARD disk that is larger than 5 GB?

    What file system you are using on the external HARD drive? Maybe you should try to reformat to NTFS.

    In addition, you should try another cable.

Maybe you are looking for

  • How to connect by Satellite P300D to LCD TV

    Hello I'm new to the forum and hope I'm in the right place. I was tearing my hair out trying to connect my Satellite P300D to my LCD TV.All connections seem ok and the wallpaper appears on the TV but nothng else No slider, icons or anything else from

  • xbox account recovery

    I tried to fill out a form to recover my account up to 8 times, I forgot my password is there any links to possibly recover my account for my xbox, thank you. call me Ryan 07412 361865

  • Application failure and or image opinion what causes this?

    I turned on my computer this morning and I'm now request and image or failure notice like this.    X the application or DLL C:/windows/system32/jytvhi.dll is not a valid image of what's wrong with my computer?   I ran a diagnostic and it says that I

  • Local access only on wireless network

    My laptop (Toshiba Satellite L350-203 with Vista SP1 HPE) has lost the ability to connect to the internet using my home network. I have McAfee Internet Security and charge of IE8, but both were present before the problem appeared. My home network is

  • Impossible to open with WordPad Readme.wri files

    original title: Literally. I have an old 16-bit game that came with a readme readme.WRI format. However, when opening with WordPad, there a lot of garbage in the file. (We, the waste were actually OLE images). What happened and why?