Automation Examples

With a good understanding of how the command-line parameters are used to automate a migration, the next step is to incorporate those command-line switches into an automated script.

The following sections illustrate several automation use case examples:

Each example there includes a fully functional extraction and injection batch file along with a table that describes the commands being used to perform the operation.

Note
To save any of the examples as MS-DOS batch files, open Notepad and copy then paste the text. Select Save, change the ‘Save as type’ to ‘All files’ then change ‘untitled’ to ‘Extract.bat’ and select Save.


Note
The batch file examples in this section do not contain exit codes. The full list of supported exit codes is available in Migration Manager Exit Codes.

It is recommended that exit codes be included in each batch file that you develop.