Advertisement
ibi

remove dupes with powershell

ibi
Aug 18th, 2016
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # run in \\path2 (different from \\path1)
  2. # optional: use -whatif or -confirm with "ri"
  3. # optional: use "mi" instead of "ri" to move files
  4. gci -r \\path1 -filter *.jpg | % { gci $_.name -r | ri -force}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement