Generating a VBScript Source File

To generate a VBScript file select the Definition Files tab on the main window then right-click on a file and select Generate a VBScript file.

image2021-5-14_12-5-40.png

This opens the VBScript Generation Options dialog:


Output

image2021-5-14_12-17-11.png

Property
Value
Directory

The folder where the source file is saved

Selecting a folder other than the default folder will result in a warning prompting you to ensure the folder is protected from unauthorised access.
The "Do not show this again" option is applied on a per folder basis, therefore selecting different previously unused folders will result in additional warnings.

For more information see here.

File Name

The name of the VBscript source file. This defaults to the XML file name with a .vbs extension


Shutdown

image2021-5-14_12-20-2.png

Property Value
Shut down The PC will shut own at the end of the backup
Log Off The user will be logged out at the end of the backup
Enable Shut Down Select to enable this property

Run Once a Day

image2021-5-14_12-24-2.png

Property Value
Run Once a Day If selected, will only enable this script to run once per day. This is useful for example if you want a backup to happen at first login or shutdown.

Run Programs

image2021-5-14_13-33-15.png

Property Value
Run a program or script at the start Select to enable a program or script to run before the backup starts
File Name The path and executable file name
Parameters Optional command line parameters for the program
Run a program or script at the start Select to enable a program or script to run when the backup ends
File Name The path and executable file name
Parameters Optional command line parameters for the program

Elevation

image2021-5-14_13-34-15.png

Property Value
Enable Elevation If selected will enable UAC elevation for the entire script. This enables functions and programs to run outside the context of Macrium Reflect without requesting further elevation.

Directory Synchronization

image2021-5-14_13-35-0.png

Property
Value
Enable directory synchronization If enabled will use the MS utility RoboCopy to synchronize the backup target directory with the supplied directory.
Directory Enter the folder that you want to copy/archive your backup files to

Click 'OK' to generate the VBScript source file.