Generating VBScript Files


 

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

 

 


 

VBScript options

Log File

Shutdown

Application Event Log

Email

Run Once a Day

Run Programs

Vista Elevation

Duplicate Backup File

 

 

 

Log File

 

Select to add VBScript code to create a log file during the backup or disk image.

The log file name will be unique use the format: log-YYYY-MM-DD HH.MM.SS.txt

 

 

Shutdown

 

Select to add VBScript code to shut down or log off your PC at the end of the script.

 

Combine this option with Run Once a Day to avoid creating too many backups or images.

 

 

 

 

Application Event Log

 

Select to add VBScript code to add messages to the Application Event Log in XP and Vista.

To access the 'Application Event Log'.

1. Right click on 'My Computer' and select 'Manage'.

2. Expand the 'Event Viewer' node.

 

The 'Source' field for the generated messages will always be WScript.exe

 

 

Email

 

Select to add VBScript code to generate and send email messages on backup success and failure.

 

Your SMTP (Simple Mail Transfer Protocol) Server name can usually be found by looking at your email client settings. For Outlook Express select 'Tools' from the main menu then 'Accounts'.

 

 

Run Once a Day

 

Select to add VBScript code to only allow the script to run once a day. This is achieved by writing the script full path, file name and last run date to the Windows registry. The last run date is then compared with the current date and the script is terminated if they are the same.

 

 

 

Run Programs

 

Select to add VBScript code to execute any program or script at the beginning or end of the script.

 

 

 

Vista Elevation

 

This option only applies to Windows Vista. By default Vista enables a security feature called 'User Account Control' (UAC). With UAC enabled, any attempt to execute a program that could access restricted areas of your PC will result in an 'Elevation Prompt'. This prompt requires the user to verify administration user and password details. Reflect requires elevated privileges to run and will always prompt for elevation before executing if the calling program or script is not already elevated. However, it is often preferred that the script that executes Reflect is elevated before calling Reflect. The advantages of this are:

 

  • Only one elevation prompt is required. A script could be calling multiple backups but if it has already been elevated then no further elevation prompts are required.

  • Some scripting functions may fail if the script isn't running with elevated privileges.

 

 

 

 

Duplicate Backup File

 

 

 

 

This option enables you to copy the backup/image file(s) just created to an alternative backup directory. This can be a useful way to ensure that your files are contained in two locations and therefore the risk of backup corruption is greatly reduced.