Skip to main content

OODCMD command reference

Syntax:

OODCMD <command> [drive ...] [options]

Commands and method names are case-insensitive. The tables use the canonical names; OODCMD help is the authoritative help for your installed build.

Commands

CommandMeaning
analyze <drive ...>Analyze selected drives without reorganizing files.
defrag <drive ...>Optimize using SOLID/Quick, or the method selected with --method.
<method> <drive ...>Run one of the methods below.
listList the drives known to the agent.
status [drive ...]Show drive state and fragmentation; omit drives for the available set.
status [drive ...] --followContinue reporting running actions until they finish.
stop <drive ...>Stop the selected running actions.
pause <drive ...>Toggle between paused and running.
resume <drive ...>Alias of pause; also toggles the state.
licenseShow the license state; no license entry.
versionShow the version.
help [topic]General help, methods, exitcodes, examples, or a method name.

Pause is a toggle. Check status before using either pause or resume. Repeating resume is not an idempotent way to ensure an operation is running.

Methods

Command nameMethod
solid-quickSOLID/Quick; default for defrag.
solidSOLID/Complete.
stealthSTEALTH.
spaceSPACE.
complete-nameCOMPLETE/Name.
complete-modifiedCOMPLETE/Modified.
complete-accessCOMPLETE/Access.
optimizeOPTIMIZE; zones required.
optimize-quickOPTIMIZE/Quick; zones required.
optimize-completeOPTIMIZE/Complete; zones required.

Common method aliases include quick for solid-quick and solid-complete for solid. Prefer canonical names in scripts. Use help methods for aliases supported by your build.

Options

OptionMeaning
-m, --method <name>Method for defrag.
-n, --no-waitReturn once the agent accepts the action.
-f, --followFollow running actions with status.
-i, --interval <seconds>Progress interval, default 2 seconds.
-t, --timeout <seconds>Agent connection timeout, default 30 seconds.
-v, --verboseInclude current-file, load, and drive detail where available.
-q, --quietSuppress routine progress; keep warnings, errors, and final result.

Interval and connection timeout accept whole seconds from 1 to 3600. Timeout is for connecting to the agent, not a maximum optimization runtime.

Without --no-wait, analysis and method commands wait for completion. With --no-wait, success means acceptance, not completion.

Interrupting a waiting command

Ctrl+C while waiting requests a stop for actions started by that invocation. A second Ctrl+C exits immediately and can leave those actions running in the agent. Inspect status afterward.

A separate status --follow observes existing work. Do not assume closing that observer stops work it did not start.

Exit codes

CodeMeaning
0Success; completed, or accepted when using --no-wait.
1Invalid command line.
2Trial, missing, expired, or invalid license.
3Agent unavailable.
4Drive unknown or not selectable.
5Action not started, for example busy drive, disabled zones, or missing acknowledgement.
6Action incomplete, including unconfirmed stop/pause.
7Interrupted with Ctrl+C.
8Connection lost while waiting.
9Unexpected error.

Read %ERRORLEVEL% in Command Prompt or $LASTEXITCODE in PowerShell immediately after OODCMD exits.