Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

6.1 Syntax and options

Wiki Markup
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="646f65d1-7f1b-4e47-beae-ce9aeb1ce384"><ac:parameter ac:name="">_Ref160269336</ac:parameter></ac:structured-macro>
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*

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 .
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
AnchorOLE_LINK1OLE_LINK1 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