You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

6.1 Syntax and options

The syntax to run the HYMOS Import Wizard from command line is: [Path]HYMOSImportWizard.exe template -options [database] [import-spec]
In this command line the only compulsory argument is the template file with its full path.. If a relative path is used, it is relative to the application, so relative to \Program Files\HYMOS 4\System\.

Entering options, database and import-spec is only needed if you wish to overrule certain specifications in the template.

Database is the full name and path to the H YMOS D ata*B* ase definition file. If not specified on the command line, the definition in the template is used. Database may be placed before or after template because it can be identified by the fact that it ends on .hdb

Import-spec is the combination of the two fields forming the File path / mask . If not specified on the command line, the definition in the template is used. If used, import-spec must be placed after template .
Options start with "-" or "/" and may be placed anywhere in the command line. Options on the command line override the definition in the template. The application recognizes the next options

Table 10: Options for command line operation

-noui

Do not show user interface.

-v or -verbose

Write extra information to log file.

-log: filename

Write output to log file filename . Do not forget to place double quotes around the filename if it contains spaces.

-s or -subdirs

also act on all sub-folders of import-spec

-nowrite

Do not write to the database (test run). There is no equivalent for this option in the user-interface. May be used to test unattended runs without actually writing to the database.

-usr:username

the HYMOS user (you need to replace username with the actual name of the user)

-pwd:password

the password of the HYMOS user (you need to replace password with the actual password)


Example
This line would be sufficient to do an import run without using the user interface:C:\Program Files\HYMOS 4\System>HYMOSImportWizard.exe D:\HYMOS\HYMOS_Databases\myDB\myTemplates\myTemplate.xml -noui
and for overruling the database to import to: C:\Program Files\HYMOS 4\System>HYMOSImportWizard.exe D:\HYMOS\HYMOS_Databases\myDB\myTemplates\myTemplate.xml -noui
D:\HYMOS\HYMOS_Databases\myOtherDB\default.hdb
or if you only wish to try an import, get as much log-information as possible and no data written to the database: C:\Program Files\HYMOS 4\System>HYMOSImportWizard.exe D:\HYMOS\HYMOS_Databases\myDB\myTemplates\myTemplate.xml -noui -v -nowrite

  • No labels