Skip to content

thibaud200/Script_bash_powershell_cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Script_bash_powershell_cmd

Script to find duplicates files on a computer

the generate_hashes.ps1 or generate_hashes_multi.ps1 script file

they will generate a NDJSON file with this structure as an example:

{"Path":".\\fileName","Hash":"883820B20985ECA5F8A12FCDE7E4EB5585796DB7F6A12A0080D6D7A211AD5A0C","Size":342624256}

type this commande to start the scripts

if you have powershell version less then v7 then :

.\generate_hashes.ps1 -Path "Z:\sauvegardes\series" -OutputJson "hashs_sauvegardes.json"

otherwise if your version is v7 or more : (multi thread script)

.\generate_hashes_multi.ps1 -Path "Z:\sauvegardes\series" -OutputJson "hashs_sauvegardes.json"

compare_hashes.ps1

This script file will take the JSON file and scan a repository given in a parameter to search for the exact same file in another folder

.\compare_hashes.ps1 -Path "Z:\sauvegardes\series" -OutputJson "hashs_sauvegardes.json"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published