Skip to content

script to randomly delete half the files in a folder

License

Notifications You must be signed in to change notification settings

rangedsp/thanos.ps1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

thanos.ps1

snap

Script to randomly delete half the files in a folder.

thanos.ps1
    $Path <String>
    [-SoulStone]
    [-Ratio <Double>]
    [-Resolution <Int32>]
    [-Silent]
    [-StrictRatio]

Examples:

  1. To delete half the files randomly in folder C:\Users\rangedsp\Pictures\ThanosRule34

    .\thanos.ps1 -path "C:\Users\rangedsp\Pictures\ThanosRule34"

  2. To move half the files randomly to folder C:\Users\rangedsp\Pictures\ThanosRule34\recovery

    .\thanos.ps1 -path "C:\Users\rangedsp\Pictures\ThanosRule34" -SoulStone 1

  3. To delete 10% of the files randomly in folder C:\Users\rangedsp\Pictures\ThanosRule34\recovery

    .\thanos.ps1 -path "C:\Users\rangedsp\Pictures\ThanosRule34" -Ratio 0.1

  4. To delete half the files randomly in folder C:\Users\rangedsp\Pictures\ThanosRule34, but ensures at least 1/2 (or whatever the set ratio) of the files will survive.

    .\thanos.ps1 -path "C:\Users\rangedsp\Pictures\ThanosRule34" -StrictRatio 1

About

script to randomly delete half the files in a folder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published