Posted October 30, 2025 by adrmkx
Tutorial for users who have never used a command prompt before.
1. Install Python
Go to the website: https://www.python.org/downloads/
Download Python 3.8 or higher for your operating system.
Check the box “Add Python to PATH”.
Verify installation by opening a command prompt and typing:
python --version
You should see your Python version printed. If it doesn't print, the installation went wrong.
2. Install Pillow (Python Imaging Library)
Pillow is required for image conversion tasks.
Open a command prompt.
Run the command:
pip install pillow
3. Wait until the installation completes. You can check it with:
pip show pillow
3. Install FFmpeg
FFmpeg is needed for audio tasks: recompressing .ogg files and converting .mp3 to .ogg.
Windows:
Go to https://ffmpeg.org/download.html, then Windows builds.
Download the Static build.
Extract the ZIP to a folder, e.g., C:\ffmpeg.
Add FFmpeg to your system PATH:
Press Windows + S, search for Environment Variables, and open Edit system environment variables.
Click Environment Variables → under System variables, find Path -> Edit -> New, then add the path to C:\ffmpeg\bin.
Open a new command prompt and type:
> ffmpeg -version
You should see FFmpeg version info. If not, then installation wasn't complete.
4. Download the CMD Script
Download the CMD version .py file
Place it somewhere in your computer.
5. Run the CMD Script
Open a command prompt.
Navigate to the folder containing the script:
> cd path\to\folder
Example:
> cd C:\Users\YourName\Downloads
Run the script:
> python files_optimizer_cli.py
Then follow command prompts. Done.