Skip to main content

Get started with OODCMD

OODCMD.exe controls the O&O Defrag agent from a terminal or script. It can analyze and optimize drives, report status, and stop or toggle pause for actions.

Requirements

  • A full, valid O&O Defrag license; OODCMD is unavailable in the trial.
  • A matching installation of the command-line tool and agent.
  • Access to the local agent service, OODefragAgent.
  • An available drive known to that agent.

Open a terminal with the administrative rights required by your installation. Use the installed executable rather than a copied binary from another product version.

First commands

From the installation directory, run:

.\OODCMD.exe version
.\OODCMD.exe help
.\OODCMD.exe list
.\OODCMD.exe status
.\OODCMD.exe analyze C:

The analysis command does not reorganize files. It normally waits for completion and displays progress.

Commands in the rest of this guide use OODCMD for readability. Use .\OODCMD.exe in PowerShell when running it from its directory, or supply the full executable path.

Choose a drive

Drive arguments can be C, C:, or C:\. Supply several drive letters to address several drives, or all for every drive known to the agent. Check list first: all can affect more drives than you intend.

Choose a method

OODCMD defrag C: selects SOLID/Quick. Use --method or a named method command for another method.

The current modern interface labels the quick method SOLID, while OODCMD uses SOLID/Quick. In contrast, the command OODCMD solid C: selects SOLID/Complete.

Limits

OODCMD does not enter license keys, create GUI jobs, or expose the extra tools for disk checking, SSD TRIM, wiping free space, thin provisioning, or DiskCleaner. Use the relevant application controls for those tasks.

Read the reference before using run-control commands and the examples before adding OODCMD to unattended scripts.