Products › OneClickExporter › Command line
Command line — version 3.2.8OneClickExporter 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.
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.
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.
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.
OneClickExporter.Cli export <plan.mpp | plan.xml | folder> --destination <folder> [options]"%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.
Everything the window has
Each option matches a checkbox in the application. Upper and lower case don't matter.
| Option | What it does |
|---|---|
--destination <folder> | Folder to write the files to. Required, and it must exist. |
--pool | The 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-resources | Daily resource availability and overallocation (TimePhasedResources.csv). Needs --timephased too. |
--ev | The daily earned value curve (EarnedValue.csv). |
--preliminary-works | The preliminary works (PreliminaryWorks.csv). |
--delimiter <v> | comma (default), semicolon or tab. For Excel where the comma is the decimal separator: semicolon. |
--bom | CSV as UTF-8 with BOM, so Excel reads accented characters correctly. |
--json | Also one JSON file per table, numbers as numbers and empty values as null. |
--xlsx | Also 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. |
--log | Writes 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.
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.
OneClickExporter.Cli export "C:\Plans\Programme.mpp" ^ --destination "C:\Data\Programme" --pool --milestones --ev ^ --timephased 2026 2027 --tp-resourcesOneClickExporter.Cli export "C:\Plans\Contract.mpp" ^ --destination "C:\Data\Excel" --delimiter semicolon --bom --xlsxOneClickExporter.Cli export "\\server\Projects\Plans" ^ --destination "D:\Data\Portfolio" --milestones --evOneClickExporter.Cli export "C:\Plans\Programme.mpp" ^ --destination "D:\Pipeline\projects" --pool --json.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.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.

| Code | Meaning | The files |
|---|---|---|
| 0 | All done, no warnings. | Written |
| 1 | Done, with warnings worth reading: for example assignments on summary tasks, or resources missing from the pool. | Written |
| 2 | The 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 |
| 3 | Licence: not activated, not valid, or trial expired. | Not written |
| 4 | Wrong 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.
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.
@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%Create the task
Open Task Scheduler and choose Create Basic Task. Give it a telling name, such as “Project export”.
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.
Point it at the program
As the action choose Start a program and pick the
.cmdfile. In Start in put the folder that holds it.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.
Run it once by hand
From the task list choose Run and check the log and the Last Run Result column:
0x0is code 0,0x1code 1, and so on.
The usual stumbles, and the way out
It works by hand, but the scheduled task returns code 3
The command exits straight away with code 4
--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
The code is 1: can I trust the files?
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.
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 tiersWindows 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.
Questions about the command line
Does the command line cost extra?
Does the machine running the task need Microsoft Project?
.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?
Can I activate the licence from the command line?
How is it different from exporting from the application?
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.