Any Tool/Trick to delete common files between 2 folders in Windows 7 -


I have 2 folders that are almost identical to the content, what do I have to do to find files that exist for each Not of them are

folder 1: a.doc, b.doc, c.doc, d.doc, folder 2: b.doc, d.doc, E doc

Since, each folder contains both b.doc, d.doc :

folder 1: a .doc, c.doc folder2: e.doc

(yes, it automatically deletes)

in each folder 1000+ files are named with the file are all Korean.

What I am currently doing, through a command prompt, gives me a list of file names through the DIR, but in fact it is nothing but manual only.

Anyone can help?

Handle Korean file names without it should work.

Warning This code only deletes all common files between one and B folders.

  @echo off setlocal enabled extension disabled expansion rim target folders configuration set "folderA =% cd% \ a" set "folderB =% cd% \ b" rim ----- ---- -------------------------------------------- Temporary work folders and remove the output option set "Foldera 1 =% temp% \% ~ n0.a.% random %% random %% random% Ktimpi" set "folder B1 =% temp% \% ~ n0.b.% random% random %% random %% .tmp "set" rcOpt = / njh / njs / np / nfl / ndl & gt; to create a duplicate of nul "rem folders, 0 Bait With Robokopi "% folderA%" "% folderA1%" /% rcOpt% robocopy create "% FolderB%" "% folderB1%" / delete to create% rcOpt% rem remove all files files in B1 an e-files overwrite which later Robocopi will be deleted "% folderB1%" "% folderA%" / xl / mov% RcOpt% rem remove the extract B ri A1 all files overwrite the files in B that after In Robocopy "% folderA1%" "% folderB%" / xl / mov% rcOpt% rem 1 is deleted, only non-normal files are in In B 1 contains only non-normal files B files from the target folder to remove the rim that are not present in the source Robocopi "% folderA1%" "% folderA%" / nocopy / purge% rcOpt% robocopy "% folderB1%" "% FolderB% "/ Nocopy / purge% rcOpt% Rim Cleanup rmdir / s / q"% folderA1% "& gt; Tap 2 & gt; Faucet RMDIR / S / q "% folderB1%" & gt; Nool 2 & gt; Null  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -