OneClickExporter from the command line

Products › OneClickExporter › Command line

Command line — version 3.2.8

OneClickExporter from the command line: your Project data, every night, with nobody at the keyboard.

Next to the application sits OneClickExporter.Cli.exe: the same engine, the same options, no windows. Put it in Windows Task Scheduler and every morning the files are already current for whoever reads them: the dashboard, the Excel workbook, the Qlik or Tableau model, the business-system import.

Who it is for

When the export has to arrive on time, not when someone remembers

A report that shows Friday evening's data on Monday morning loses trust fast. The command line takes the person out of the middle: plans are saved during the day, the export runs at night, and readers find fresh numbers.

The PMO and its dashboards

Power BI, Excel, Qlik or Tableau refresh from the same folder every morning. Nobody has to open the application and press a button before the meeting.

Whoever feeds another system

The ERP, the timesheet system, the data warehouse import files at a fixed time. Here they always find the same files with the same columns, and an exit code that says whether to trust them.

Whoever runs many plans

A shared folder where every project manager saves their plan becomes a single dataset, every night, the way a master plan would.

There is a longer account of what this changes for the people who read the report: the nightly job your PMO never had.

Before you start

Four things to know

Where it is

With the installer: %LOCALAPPDATA%\OneClickExporter\OneClickExporter.Cli.exe. With the portable package: in the folder you unzipped it to, next to OneClickExporter.exe. It is not on the Windows PATH: commands and scheduled tasks use the full path.

The licence

It is the application's licence, at no extra cost. The key is activated once from the application, on the same machine and with the same Windows user; the command line uses it from there. The 15-day trial includes it.

The destination folder

It must already exist: the command line does not create it, and if it is missing it stops with an error rather than writing somewhere you don't expect. Every run rewrites the files under the same names.

No Microsoft Project

It reads the plan file by itself, like the application: the machine running the scheduled task needs neither Project nor Excel, not even for the XLSX output.

The first command

One verb, one plan, one folder

There is a single verb, export. Then comes the plan to export, which can be an .mpp, the .xml saved by Project, a master plan or a folder; then the folder to write to; then the options.

Syntax OneClickExporter.Cli export <plan.mpp | plan.xml | folder> --destination <folder> [options]
Command Prompt — the simplest command "%LOCALAPPDATA%\OneClickExporter\OneClickExporter.Cli.exe" export "C:\Plans\Contract.mpp" --destination "C:\Data\Projects"

Out come projects, tasks, resources, assignments and the governance scorecard, as comma-separated CSV. With no arguments, or with --help, the program prints the full help and exits with code 0.

The options

Everything the window has

Each option matches a checkbox in the application. Upper and lower case don't matter.

OptionWhat it does
--destination <folder>Folder to write the files to. Required, and it must exist.
--poolThe plan uses a shared resource pool: resources are mapped back to the pool.
--milestones [N]Writes Milestones.csv. N is the custom field that classifies the milestones, 1 to 30 (default 21).
--timephased <from> <to>Daily work and cost of each assignment (TimePhasedAssignments.csv). Dates as 2026-01-01 or 20260101, or whole years: 2026 2027 runs from 1 January 2026 to 31 December 2027.
--tp-resourcesDaily resource availability and overallocation (TimePhasedResources.csv). Needs --timephased too.
--evThe daily earned value curve (EarnedValue.csv).
--preliminary-worksThe preliminary works (PreliminaryWorks.csv).
--delimiter <v>comma (default), semicolon or tab. For Excel where the comma is the decimal separator: semicolon.
--bomCSV as UTF-8 with BOM, so Excel reads accented characters correctly.
--jsonAlso one JSON file per table, numbers as numbers and empty values as null.
--xlsxAlso OneClickExport.xlsx: a sheet and a table per file, with real dates and numbers.
--language <xx>Message language: it, en, de, es, fr, pt. If omitted, the Windows language. The exported files do not change.
--logWrites a detailed log of the run into the destination folder, to attach to a support request.

Which files come out and what they hold: the table of the ten files.

Examples

Four commands for four destinations

In the examples OneClickExporter.Cli stands for the full path of the program. The ^ at the end of a line continues the command on the next one in Command Prompt.

A master plan with its pool, for a BI dashboard OneClickExporter.Cli export "C:\Plans\Programme.mpp" ^  --destination "C:\Data\Programme" --pool --milestones --ev ^  --timephased 2026 2027 --tp-resources
A single plan, for Excel with a comma decimal separator OneClickExporter.Cli export "C:\Plans\Contract.mpp" ^  --destination "C:\Data\Excel" --delimiter semicolon --bom --xlsx
Every plan in a shared folder, as a single dataset OneClickExporter.Cli export "\\server\Projects\Plans" ^  --destination "D:\Data\Portfolio" --milestones --ev
JSON for a pipeline or an application OneClickExporter.Cli export "C:\Plans\Programme.mpp" ^  --destination "D:\Pipeline\projects" --pool --json
The folder, exactly. Every .mpp and every Project .xml at the top level of the folder is included. The pool file and the subprojects of a master plan in the same folder are skipped, because they already come in through their master, and they are listed in a note at the end. Folder export starts from the 5-project licence tier.
Exit codes

A number a scheduler can read

A nightly export that fails silently is worse than no export at all: in the morning the report shows old numbers and nobody knows. That is why every run ends with a code that says how it went.

Command Prompt showing the end of a OneClickExporter command-line export: the three subprojects of a master plan exported, the Export completed summary and Exit code: 0
A real run on a sample master plan: three subprojects in a single export, and exit code 0.
CodeMeaningThe files
0All done, no warnings.Written
1Done, with warnings worth reading: for example assignments on summary tasks, or resources missing from the pool.Written
2The plan cannot be exported: unreadable file, pool or subproject out of reach, an output file held open by another program, or more projects than the licence covers.Not reliable
3Licence: not activated, not valid, or trial expired.Not written
4Wrong parameters: unknown option, a destination folder that doesn't exist, dates the wrong way round.Not written

Progress goes to standard output; errors, warnings and notes go to standard error, prefixed [ERROR], [WARNING] and [INFO]. The destination folder always keeps IntegrityCheck.log, which records the plan's fingerprint before and after reading it: proof that the source file was not touched.

Every night

Putting it in Windows Task Scheduler

The tidiest way is a small .cmd file that runs the export, keeps a log and flags failures. The scheduled task runs that file.

export-projects.cmd @echo off"%LOCALAPPDATA%\OneClickExporter\OneClickExporter.Cli.exe" export "\\server\Projects\Plans" ^  --destination "D:\Data\Portfolio" --milestones --ev --timephased 2026 2027 ^  >> "D:\Data\export-log.txt" 2>&1if %ERRORLEVEL% GEQ 2 echo %DATE% %TIME% export failed, code %ERRORLEVEL% >> "D:\Data\export-log.txt"exit /b %ERRORLEVEL%
  1. Create the task

    Open Task Scheduler and choose Create Basic Task. Give it a telling name, such as “Project export”.

  2. Choose when

    Daily, at a time when the plans are saved and nobody is working on them: overnight, or early morning before the reports refresh.

  3. Point it at the program

    As the action choose Start a program and pick the .cmd file. In Start in put the folder that holds it.

  4. Let it run with nobody logged on

    In the task properties choose Run whether user is logged on or not. The task must run as the same Windows user that activated the licence, and that user must be able to read the plans folder, network folders included.

  5. Run it once by hand

    From the task list choose Run and check the log and the Last Run Result column: 0x0 is code 0, 0x1 code 1, and so on.

If something goes wrong

The usual stumbles, and the way out

It works by hand, but the scheduled task returns code 3
The task runs as a different Windows user from the one that activated the licence. Set the task to that user, or sign in as the task's user and activate the key from the application.
The command exits straight away with code 4
A parameter is wrong: usually the destination folder doesn't exist yet, or an option is misspelled, or --tp-resources is there without --timephased. The message on standard error says which.
At night I get code 2, during the day I don't
It is almost always a file held open: a CSV open in Excel, or a report refreshing at that very moment. Move the export before the refresh, and have Excel read the data through Power Query instead of opening the files. If the plan is on the network, check that the task's user can reach it.
The code is 1: can I trust the files?
Yes, the files are written. The warnings point to something in the plan worth a look, such as an assignment on a summary task. Read them in the log and fix the plan when you can.
Try it, then decide

The command line is in the trial, and in the licence

It is not a separate module and costs nothing extra. The 15-day trial includes it, on as many projects as you like: you can set up the real nightly task before you buy.

Download the trial

Portable for Windows x64, about 100 MB: unzip and run, no installation. In the exported files the project name ends with [TRIAL] until you activate a key.

Download the free 15-day trial

Buy a licence

Yearly subscription per seat, from €79 to €999 excluding VAT, depending on how many projects a single export covers. One licence covers the application and the command line. You have 14 days to change your mind.

Buy OneClickExporter Compare the six licence tiers

Windows may say it does not recognise this program yet, or block the download of a file few people have downloaded. Check that the publisher is Rosario Rizzo — every file in the package is digitally signed.

What you will see, and how to check it yourself

FAQ

Questions about the command line

Does the command line cost extra?
No. It ships in the same package as the application, with the same licence and the same key, and the 15-day trial includes it too.
Does the machine running the task need Microsoft Project?
No. OneClickExporter reads the .mpp file by itself, so the task can run on a server or a PC where Project is not installed.
Can I export a plan while someone has it open in Project?
Yes. The file on disk is read, that is, the plan as of its last save. Unsaved changes go into the next export.
Can I activate the licence from the command line?
No, the key is activated once from the application, on the same machine and with the same Windows user. From then on the command line uses it, with the same project limits.
How is it different from exporting from the application?
Not at all in the files: same engine, same options, same files. The only option in the window that the command line lacks is the projects-only summary.

Plans are saved by day. The data arrives by night.

One command, one scheduled task, and every morning the people who read the numbers find them current, in the tool they use.

Scroll to Top