Please read this README carefully to avoid any data loss.
The scripts may vary in quality – I made them for my own use and cannot guarantee their functionality for everyone.
Platform notes
fast_folder_remover.pyandbulk image resizer (50%).batare designed for Windows (they userobocopy,rd, and PowerShell).- All other Python scripts should work on any OS where Python 3 is available.
By default, most scripts use the current working directory as the source.
Exceptions: fast_folder_remover.py asks for a full folder path, and the Adlist converters open a file selection dialog.
-
universal_prefix-suffix_remover.py– Interactively removes a user‑specified prefix or suffix from filenames. Supports dry‑run, case‑sensitive toggle, and cleans up stray spaces. -
bulk image resizer (50%).bat– Resizes all.jpg,.jpeg,.pngimages in the current folder to 50% of their original size. Saves resized copies with a_resizedsuffix (originals are kept). -
+_to_space_in_filenames.py– Replaces one or more consecutive+characters in filenames with a single space. Ignores.pyscripts. -
fix_spaces_in_filenames.py– Cleans filenames by removing leading/trailing spaces, spaces before the file extension, and replacing multiple spaces with a single space. -
fast_folder_remover.py– Windows only. Deletes a folder and all its contents quickly, especially when it contains many small files. Usesrobocopy /MIRwith an empty temporary folder, then falls back toshutil.rmtreeandrd /s /q. Includes safety blacklists for critical system paths. -
txt_file_splitter.py– Splits a text file into 2‑20 parts. Smart splitting tries to cut at paragraph or line breaks for even distribution. Shows detailed statistics (size per part, variance).
All converter scripts open a file dialog, transform the selected file, and save the result in the same folder with a descriptive suffix.
-
Adguardlist_to_windowsHOSTSlist.py– Converts an AdGuard blocklist (||domain.com^) into Windows HOSTS format (127.0.0.1 domain.com). -
domainlist_to_Adguardblocklist.py– Converts a simple list of domains (one per line) into AdGuard rules (||domain.com^). -
domainlist_to_windowsHOSTSlist.py– Converts a domain list into Windows HOSTS file entries. -
windowsHOSTSlist_to_domainlist.py– Extracts domain names from a Windows HOSTS file and saves them as a plain domain list.
If you found this project useful, please drop a ⭐ – it means a lot!