It is possible run reflect.exe from the command line or VB script. A number of command line arguments allow the user flexibility to perform a number of actions. There are three main usage areas as follows:
- Running a backup
- Mounting an image
- Unmounting an image
Each topic is discussed in detail below.
Running a backup
Use the syntax as follows:
reflect.exe [-v | -e [-w] [-full | -inc | -diff] [xml filename] ]
Switches
-e
|
Execute the XML file. If no full / diff / inc qualifier is used, a full backup is performed by default. |
| -w |
If Reflect is busy then wait until available otherwise exit immediately |
-v
|
Validate the XML file and exit |
-full
|
Run a full backup |
-diff
|
Run a differential backup |
| -inc |
Run an incremental backup |
Examples
To validate an XML file:
reflect.exe -v "c:\backup.xml"
To run a full backup using an XML file:
reflect.exe -e "c:\backup.xml"
or
reflect.exe -e -full "c:\backup.xml"
To execute an XML file with wait if busy
reflect.exe -e -w "c:\backup.xml"
To execute an XML file and create an incremental image
reflect.exe -e -inc "c:\backup.xml"
Mounting an image
Use the syntax as follows:
reflect.exe [Path To Image File] -b [-auto -drives [Drives[s]] -pass [PASSWORD]]
Switches
| -b |
Browse image |
| -auto |
Automatically assign drive letters.\n\tIf not specified then you will be prompted |
-drives
|
A comma separated list of drive letters to use. If not specified\n\tthen the next available letters are used
|
| -pass |
The password for protected image files |
The image file name is the fully qualified path. If "LAST_FILE_CREATED" is specified then the last image created in the current Windows session is mounted.
Examples
To mount an image and prompt for a drive letter to use:
reflect.exe "D:\901DBF91346B9A81-00-00.mrimg" -b
To mount all partitions in an image using the next available drive letter(s):
reflect.exe "D:\901DBF91346B9A81-00-00.mrimg" -b -auto
To mount all partitions for the last image created:
reflect.exe "LAST_FILE_CREATED" -b -auto
To mount all partitions in an image using drive letters j,k,l:
reflect.exe "D:\901DBF91346B9A81-00-00.mrimg" -b -auto -drives j,k,l
To mount all partitions in a password protected image using drive letters j,k,l:
reflect.exe "D:\901DBF91346B9A81-00-00.mrimg" -b -auto -drives j,k,l -pass "PWD"
Unmounting an image
Use the syntax as follows:
reflect.exe [Drive Letter] -u
Switches
-u Unmount image
If a drive letter isn't specified then all mounted images are unmmounted
Examples
To unmount an image from drive letter 'j':
reflect.exe J -u
To umnount all mounted drives:
reflect.exe -u