Example 2
Use the texport utility command to export a schema from the command line, outside the Type Designer GUI.
The following example shows how you can use the command:
install_dir> texport myschema.mtt
-T MyRoot:MyAncestor:MyParent:MyType
-O C:\MyDev\ExportResults\2002-02-28_myschema.mts
-NOLOG
When you run the example, the following result occurs:
- If the MyType type of the myschema.mtt schema file is exported successfully, the texport - completed successfully. message displays on the console.
- The exported 2002-02-28_myschema.mts xml file is produced in the C:\MyDev\ExportResults directory. The 2002-02-28_myschema.mts xml file contains only the exported information of the MyType type.
- If the MyType type does not exist, or the full path leading to it is not valid, the Type name specified is not valid message displays on the console.
No log file is produced because the (-NOLOG) option has been selected.