For an example of a generated MS_DOS batch file please see: Example MS-DOS Batch File
To generate an MS-DOS batch file select the Definition Files tab on the main window then right-click on a file and select Generate an MS-DOS Batch File.
This opens the MS-DOS Batch Generation Options dialog:
Batch File Output
Property | Value |
---|
Directory | The folder where the batch source file is saved |
File Name | The name of the batch source file. This defaults to the XML file name with a .bat extension |
Click OK to generate an MS-DOS batch file
Generated code...
@echo off
REM ******************************************************************************
REM *
REM *
REM * Module Name: FDI.bat
REM *
REM * Abstract: This is a template MSDOS batch file generated by Reflect v5.0
REM * Modify to add your own functionality if required
REM *
REM *
REM ******************************************************************************
:again
"C:\Program Files\Macrium\Reflect\reflect.exe" -e -w -full "C:\Users\Dev\Documents\Reflect\FDI.xml"
if ERRORLEVEL 3 goto busy
if ERRORLEVEL 2 goto validation_error
if ERRORLEVEL 1 goto backup_error
if ERRORLEVEL 0 goto ok
:busy
REM Will never get here if '-w' switch is used
echo A backup or restore operation is in progress
goto again
:backup_error
REM User cancelling a backup or any other error
echo A Backup error has occured
goto end
:validation_error
REM Command line or XML syntax errors
echo A validation error has occured
goto end
:ok
echo ok!
goto end
:end