How about the following code:

set DRIVE=C
set UD_DISABLE_REPORTS=0

udefrag %DRIVE%:

pushd %UD_INSTALL_DIR%
lua5.1a scripts\udreportcnv.lua reports\fraglist_%DRIVE%.luar .
type reports\fraglist_%DRIVE%.txt
del /Q reports\fraglist_%DRIVE%.*
popd

It does exactly what requested. Only produce_plain_text_report must be set to 1 and produce_html_report must be set to zero in udreportopts.lua file.


Dmitri