Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. @echo off
  2.  
  3. del hash_*  >nul 2>&1
  4.  
  5. rem process files
  6. for %%a in (files\*) do (
  7.   for /F %%b in ('md5sum "files/%%~nxa"') do (
  8.     rem echo %%b - %%a
  9.  
  10.     if not exist hash_%%b (
  11.       copy nul hash_%%b >nul 2>&1
  12.     ) ELSE (
  13.       echo dup: %%a
  14.     )
  15.  
  16.   )
  17. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement