Rsge/File-Helper-Scripts

[WIP] Small scripts to help with various different file related tasks.

★ 0Forks 0PythonGitHub ↗Compare
collectioneditingfilespythonpython-3script

README

File Helper Scripts

Small scripts to help with various different file related tasks.
If not otherwise marked, the Python scripts should work for Linux, too.
All CMD files only work on Windows, of course.

  • change_created_date.py changes the Created Date of the chosen file(s) to a specified date and time. (Windows only)
  • change_modified_date.py changes the Modified Date of the chosen file(s) to a specified date and time.
  • ChangeUserProfileName.ps1 allows the renaming of a users home folder, including making the required registry change.
  • filter_iphone_photos.py removes .AAE and their original .JPG/.PNG files from photos & videos imported from an iOS device, keeping only modified and unedited files.
  • find_password_office.py brute-force tries passwords with various options to open a MS Office document. This shall only be used if you have the express permission of the document’s owner! Otherwise, using it is illegal under most jurisdictions! It’s very slow and a bit limited anyway, so is only really useful for easy one-word passwords you already have a basic idea of what they are and have just forgotten the exact word. False positives are also possible – if that’s the case, just continue from there with the given option.
  • ChangeAllRegistryKeysByRegex.ps1 changes all registry keys and values according to a given regex pattern and replacement. This really takes a while to run and will not work for everything! Also, it can severely damage your Windows install if used wrongly. Use with caution!
  • ChangeFirefoxUserPreferences.cmd changes some Firefox user preferences of all users from something to something else, all specified at the top of the script, if Firefox is not currently running.
  • iPhonePhotoFiltererCompiler.cmd uses PythonFileCompiler.cmd to create a .exe of the above Python script to enable users without a Python installation to run it.
  • list_files.py lists all files' unique names in a directory and all it's subdirectories into a text file.
  • PingTest.cmd tries all combinations of IPs in 192.168.X.X and prints those where an answer is gotten.
  • PythonFileCompiler.cmd takes 3 arguments, .py file name, .exe file name and path, and creates a .exe file from a Python script file using pyinstaller. (pip install pyinstaller)
  • rename_invoice_pdfs.py renames PDFs of invoices in a directory according to their content.
  • ReplaceDesktopFirefoxExeWithShortcut.cmd replaces the new .exe file of Firefox on the desktop for all users by a normal shortcut on the public desktop.
  • show_pdf_text.py shows all text found in a PDF file. Useful e.g. for OCRd PDFs to find problems.
  • show_unique_lines.py gets all unique lines in a specified text file and outputs them in a new file.
  • SortOutRename.cmd sorts all files prepended with an "!" in all subdirectories of it's path into "!" subdirs of those dirs and removes the "!" from the file name.
  • UpdateAllGitReposInSubfolders.cmd updates all Git repos in all subfolders of a base folder.

Contributors

Rsge

Issues