Example MS-DOS batch file generated by Macrium Reflect
See also: Generating an MS-DOS batch file
@echo off REM ****************************************************************************** REM * REM * REM * Module Name: Example.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:\C++\v6\Image\reflect\x64\Debug\reflect.exe" -e -w -full "C:\Example.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