README.md

Useful batch scripts for files and dirs processing

Some batchfiles are equipped with GUI, some intended to be used as templates for further editing. Most useful are:

  • dir ffmpeg flac2ogg 48 - converts all .flac within dir and subdirs to .ogg 48 kHz, using ffmpeg.

  • dir OPTIVORBIS ogg - recompress all .ogg within dir and subdirs, using OPTIVORBIS; saves up to 10% of .ogg size.

  • dir LibreOffice rtf2docx - batch conversion of .rtf, .doc, .odt and .fb2 files to .docx using LibreOffice. Overcomes clumsy LibreOffice idea of exporting all files into one dir.

  • dir AdvZIP docx - recompressing .docx after dir LibreOffice rtf2docx using AdvZIP gives up to 10% space saving.

  • dir COMPACT LZX - Windows only; makes Windows (ver. 8 and 10) compact.exe recompress selected folder and subfolder using LZX filesystem compression. Great for software installations - for modern bloatware compression ratio is typically 2.0-2.7, sometimes higher. No sense to use it on frequently updated docs and stuff - upon editing and saving file gets decompressed back.

[!NOTE] Windows users may rename forementioned files from .py to .pyw to avoid starting console.
Programs dir COMPACT LZX, dir OPTIVORBIS ogg and dir ffmpeg flac2ogg 48 accept command line arguments at start time. Argument is supposed to be a name of folder; in this case program GUI opens right in this folder. If argument happen to be a file, GUI will be opened in folder containing it. You may use it for creating shortcuts like
pythonw.exe "dir COMPACT LZX.py.py" "%1"
and then simply drag-and-drop folders onto shortcut to open program right where you need it.
If argument is absent (e.g., you simply double-click program), program simply opens in default directory and wait for you to browse and point to required location.

  • dir RENAME untranslit - batch renaming, intended for Russian users. Программа для оптового переименования (batch renaming) файлов с транслитерированными именами обратно с латиницы на русский (кириллицу). Не соответствует ISO 9, словари переименования составлены на основе того, с чем я лично сталкиваюсь. Будьте крайне осторожны, не направляйте эту программу на директории типа Windows или Program Files.

  • dir RENAME unflibusta - batch renaming of files according to patterns, like replacing underscores with spaces, removing digits, and so on. Edit rules pattern to your need.

[!NOTE] dir RENAME unflibusta.py was initially created to batch fix silly filename convention for files downloaded from Flibusta and is supposed to be edited at will as you encounter any other silly file naming scheme.

Dnyarri website

Конвейеры
0 успешных
0 с ошибкой