Using the OpenTM2 windows is only one way of performing translation tasks with this product. An alternative way is to type instructions directly in the system’s command area.
To start a task from the command area:
- Type a command and its parameters in your operating system’s command area (next to the command prompt) according to the command syntax described in the following chapters.
- Press Enter.
Note that lowercase letters in a parameter name are optional and need not be typed. A mixture between uppercase and lowercase letters is allowed. However, a muddled letter sequence like in OVerWRiTe must not be used. The parameters can be entered in any order whatever.
To process several commands in sequence, type the individual commands into a batch file (*.BAT or *.CMD) using any text editor. You can execute these commands by starting the batch file.
To avoid retyping of long text strings in commands, you can also type a command and its parameters in a text editor, which is capable of the Copy to clipboard function. You can then paste the text string from the clipboard directly into your system’s command area and start the task.
How to read syntax diagrams
In this chapter diagrams are used to illustrate the programming syntax. To use a diagram, follow a path from left to right, top to bottom, adding elements as you go. In these diagrams, all spaces and other characters are significant.
Each diagram begins with a double right arrowhead and ends with a right and left arrowhead pair. Lines beginning with single right arrowheads are continuation lines.
Keywords are all in lowercase, but can be entered in uppercase or in lowercase. Variable values that you provide are shown in italics and are usually in lowercase. Where values are shown in uppercase, they should be entered as they appear.
In a choice of items, the default item is always shown above the main line:
Optional syntax elements are shown below the main line:
A repeat arrow shown above an item or a stack of items indicates that you can specify the item multiple times or specify more than one of the items. A character (such as a comma) on the repeat arrow line indicates that the items must be separated by that character. A repeatable operand is shown like this:
Syntax diagrams can be broken into fragments. A fragment is indicated by vertical bars with the name of the fragment between the bars. The fragment is shown following the main diagram, like so:
Analyzing a document or folder
Purpose
To analyze a document or a set of documents it might be more convenient to use a command instead of OpenTM2 windows. It is particularly useful if you have many large documents or folders that you want to analyze overnight.
Format
The following syntax diagram describes how you analyze documents from the Windows (R) command line. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=ANALYSIS
- ANALYSISÂ specifies that you want to analyze documents.
- /FLD=Â folder
- folder specifies the name of a folder that contains the documents that you want to analyze.
- /FIles=Â document_name
- document_name specifies the name of a document to be analyzed.
- If you specify several documents, enclose the document names in brackets and separate them by commas.
- If you want to specify a list of document names in a list file, refer to this list file by preceding the list file name with the @ symbol (@list_file_name). In the list file enclose the document names in brackets and separate them by commas.
- If you do not specify the FIles option, all documents in the folder are analyzed.
- /OPtions=
- This parameter is particularly useful if you have Translation Memory databases available from previous translations. It specifies the following:
-
- ADDTOMEM
- OpenTM2Â can search existing Translation Memory databases for segments that match segments in the document being analyzed. Segments that match exactly or almost exactly are copied into the Translation Memory associated to the document or folder being analyzed. In that way, you can start to fill a document-specific Translation Memory even before its translation has begun.
-
- AUTO
- You can choose to have Translation Manager automatically replace sentences with matches that already exist in the Translation Memory. This substitution is done only for exact matches. The document is then already partially translated when you start working with it, enabling you to focus on the translation of new segments.
-
- AUTOCONTEXT
- See the explanation for AUTO. However, if more than one exact match has been found, the translation of the segment is to be taken from the same document.
-
- AUTOLAST
- See the explanation for AUTO. However, if more than one exact match has been found, the most recent translation of the segment is to be taken.
-
- AUTOJOIN
- Joins neighboring segments. This can be useful if you want to analyze a document that you have worked with before and where you joined neighboring text segments before you translated them. During a new analysis run these segments are treated as separate units again. However, in the associated Translation Memory there is a match (translation) for the joined segments only. To find this match more easily during automatic substitution, this option joins neighboring segments in the document to be analyzed. Note that neighboring segments are only joined if for the first segment a fuzzy match has been found.
-
- TMMATCH
- OpenTM2Â counts the number and type of matches found in the Translation Memory for the document. The document is then segmented and the matches are counted, but no segments are replaced with matches found in the Translation Memory.
-
- If you also specify AUTO, OpenTM2 automatically replaces segments with matches found in the Translation Memory and counts the number and type of matches replaced.
-
- SENDTOMT
- OpenTM2Â prepares untranslated segments for the processing by a machine translation system
- UNTRANSLATED
- All untranslated segments are to be stored in a separate file.
-
- ADJUSTLEADWS
- During whitespace handling of automatic substitution, leading whitespaces are adjusted to whitespaces in source segment.
-
- ADJUSTTRAILWS
- During whitespace handling of automatic substitution, trailing whitespaces are adjusted to whitespaces in source segment.
-
- RESPECTCRLF
- During whitespace handling of automatic substitution, substitution takes place with respect of CRLF in the segment.
-
- REDUNTCOUNT
- Prepare information for redundancy counting
-
- STOPATFIRSTEXACT
- Do no look for memory proposals in the remaining memories when an exact match has been found
-
- IGNORECOMMENTED
- Ignore memory proposals which have a comment
- /MEm=Â memdb
- memdb specifies a Translation Memory or a list of Translation Memory databases that is to be searched when ADDTOMEM has been specified.
- /OVerwrite=
- Specifies if an existing document will be overwritten when its translation has already been started. (NOÂ is the default).
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to analyze a document by using the OpenTM2cmd command.
Example
OpenTM2cmd /task=analysis /fld=myfol /files=16.scr /options=(addtomem,auto,untranslated) /mem=oldmem
In this example, the document to be analyzed has the file name 16.scr and is stored in folder myfol. Any matches found in the Translation Memory oldmem are to be added to the Translation Memory of folder myfol. Any original segment for which an exact match has been found is to be replaced with its corresponding translation segment. All the remaining segments that are not translated are to be stored in a separate file.
Archiving a Translation Memory
Purpose
To archive a Translation Memory it might be more convenient to use a command instead of OpenTM2 windows.
Format
The following syntax diagram describes how you archive a Translation Memory with the OpenTM2cmd command. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=ARCHTM
- ARCHTM specifies that you want to archive a Translation Memory.
- /FLD=Â folder
- folder specifies the name of the folder that contains the documents of which you want to archive the translated segments.
- /FIles=Â document_name
- document_name specifies the name of a document to be archived. The document_name specification can include the drive and directory containing the document to be archived.
- If you specify several documents, enclose the document names in brackets and separate them by commas.
- If you want to specify a list of document names in a list file, refer to this list file by preceding the list file name with the @ symbol (@list_file_name). In the list file enclose the document names in brackets and separate them by commas.
- If you do not specify the FIles option, all documents in the folder are archived.
- /MEm=Â memdb
- memdb specifies the name of the Translation Memory to be archived.
- /OVerwrite=
- Specifies if an existing Translation Memory is to be overwritten when archiving starts (NOÂ is the default).
- /OPtions=Â option
-
option can be one of the following:
- USEASFOLDERTM to use the archive memory as folder memory
- SOURCESOURCEMEM to create a source-source memory using the untranslated segments
- SETMFLAG to set the machine translation flag of the segments in the archive memory
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to archive a Translation Memory using the OpenTM2cmd command.
Example
OpenTM2cmd /task=archtm /fld=test /mem=arch
In this example, the folder test is archived in Translation Memory arch.
Creating reports
Purpose
OpenTM2 enables you to collect information about the effort, state, and history of your translations. The collected information can be displayed in different reports and used as a basis for calculating translation costs. Instead of using OpenTM2 windows to create reports, using a command might be more convenient.
Format
The following syntax diagram describes how you start to create reports from the Windows (R) command area. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=CNTRPT
- CNTRPTÂ specifies that you want to create a report.
- /FLD=Â folder
- folder specifies the name of the folder that contains the documents of which you want to create a report.
- /FIles=Â document_name
- document_name specifies the name of the document of which you want to create a report.
- If you specify several documents, enclose the document names in brackets and separate them by commas.
- If you want to specify a list of document names in a list file, refer to this list file by preceding the list file name with the @ symbol (@list_file_name). In the list file enclose the document names in brackets and separate them by commas.
- If you do not specify the FIles option, all documents in the folder are selected.
- /OUT=Â output_name
- output_name:: specifies the name of the file where the report is to be stored (along with the drive and directory information).
- /REport=Â rpt_name
- rpt_name specifies whether you want to create a History, Counting, Calculating, Preanalysis, or Redundancy Report or a Redundant Segment List.
- /TYpe=Â rpt_type
- rpt_type specifies the type of report. The following types are available for a History Report:
-
- DATE
- To get a brief report that is sorted by the creation date and time of the documents.
- BRIEF
- To get a brief report where the information is sorted by document name.
- DETAIL
- To get a detailed report of the process tasks performed on the selected documents.
-
The following types are available for a Counting Report:
- WITH_TOTALS
- To get a report on one or more documents in the folder, with a summary at its end.
- WITHOUT_TOTALS
- To get a report on one or more documents in the folder, without a summary.
-
The following types are available for a Calculating, Preanalysis, or Redundancy Report:
- BASE
- To get a rough overview, for each selected document, of the activities performed by OpenTM2 and by the translator to complete a translation.
- BASE_SUMMARY
- To get an overview and a summary of the activities performed for selected documents.
- FACT
- To get a detailed overview of the costs of a translation using different complexity and pay factors.
- BASE_SUMMARY_FACT
- To get a report containing all the information previously described.
- SUMMARY_FACT
- To get a report containing both the summary and the fact sheet.
- /PRofile=Â profile
- profile specifies the name of the profile to be loaded.
- /OVerwrite=
Specifies whether the file specified in output_name is to be overwritten if it already exists (NOÂ is the default).
- /FOrmat=
-
Specifies the output format for the report. The following formats can be used:
- ASCII
- To create the report in plain ASCII text
- XML
- To create the report in the XML format
- HTML
- To create the report in HTML format
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to create a report using the OpenTM2cmd command.
Example
OpenTM2cmd /task=cntrpt /fld=sample1 /out=output /report=history /type=date
In this example, a History Report of folder sample1 is created and stored in the file output.
Counting words
Purpose
Translators are usually paid for translated words or lines. To prepare the payment it is necessary to count the words that have been translated for a specific project. Also, to plan for a translation project it is necessary to know how many words will have to be translated.
Instead of using OpenTM2 windows to count words in a document, using a command might be more convenient.
Format
The following syntax diagram describes how you start to count words from the Windows command area. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=WORDCNT
- WORDCNTÂ specifies that you want to count words in a document.
- /FLD=Â folder
- folder specifies the name of the folder that contains the document of which you want to count words.
- /FIles=Â document_name
- document_name specifies the name of the document of which you want to count words.
- If you specify several documents, enclose the document names in brackets and separate them by commas.
- If you want to specify a list of document names in a list file, refer to this list file by preceding the list file name with the @ symbol (@list_file_name). In the list file enclose the document names in brackets and separate them by commas.
- If you do not specify the FIles option, the words of all documents in the folder are counted.
- /OUT=Â cnt_name
- cnt_name specifies the name of the file where the count result is to be stored (along with the drive and directory information).
- /OVerwrite=
- Specifies whether the file specified in cnt_name is to be overwritten if it already exists (NOÂ is the default).
- /OPtions=Â option
-
- in the translated document (TARGET)
- or in the original document (SOURCE)
- or the duplicate words (DUPLICATE)
- or duplicate words with added memory match information (DUPMEMMATCH)
- or fuzzy matches per class (FUZZYMATCH)
- or whether you want to count the number and type of matches found in the Translation Memory (TMMATCH)
- or use TMMATCH together with SEPREPLMATCH to count replaced matches separately. SOURCE is the default.
- /FOrmat=Â format
- format specifies the output format for the word count results an can be ASCII (= plain text), HTML, or XML
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to count words using the OpenTM2cmd command.
Example
OpenTM2cmd /task=wordcnt /fld=newfld /files=161.scr /options=target /out=e:\161.cnt
All words in the translated document 161.scr, which is contained in folder newfld, are counted and the result is stored in the file 161.cnt on drive E.
Exporting a dictionary
Purpose
If you want to export a dictionary, using a command typed in your system’s command area instead of OpenTM2 windows might be more convenient.
Format
The following syntax diagram describes how you export a Translation Memory from the Windows (R) command line. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=DICEXP
- DICEXPÂ specifies that you want to export a dictionary.
- /DIct=Â dic_name
- dic_file specifies the name of the dictionary to be exported.
- /OUT=Â mem_file
- mem_file specifies the name (along with the drive and directory) of a file where the dictionary is to be exported to. The file must have the extension EXP.
- /OVerwrite=
- Specifies whether an existing dictionary file is to be overwritten with the exported dictionary.
- /OPTIONS=option
- Specifies the format of the exported dicionary. Use ASCII for ASCII encoding, ANSI for Ansi encoding or UTF16 for Unicode (UTF-16) encoding of the exported dictionary. If nothing is specified the dictionary is exported in the ASCII format.
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to export a dictionary using the OpenTM2cmd command.
Example
OpenTM2cmd /task=dicexp /dict=mydict /out=d:\mydict.exp
In this example, the dictionary mydict is exported to the file d:\mydict.exp.
Importing a dictionary
Purpose
If you want to import a dictionary, using a command typed in your system’s command area instead of OpenTM2 windows might be more convenient.
Format
The following syntax diagram describes how you import a dictionary from the Windows (R) command area. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=DICIMP
- DICIMPÂ specifies that you want to import a dictionary.
- /FIles=Â dict_file
- Specifies the name of the SGML file containing the dictionary that you want to import along with the drive and directory where it is located.
- /DIct=Â dict_name
- Specifies the name of an existing dictionary to which the dictionary specified in FIles is to be imported to. It can be a local or a shared dictionary.
- /OPtions
- This parameter controls the format of the imported dictionary and the handling for entries which already exist.For the dictionary form use on of the following values:
-
- ANSI
- For external dictionaries in the Ansi format
- ASCII
- For external dictionaries in the ASCII format
- UTF16
- For external dictionaries in Unicode (UTF-16) format
- For the handling of existing dictionary entries use one of the following values:
-
- REPLACE
- The entries in the SGML (external) dictionary file replace the entries in the existing (internal) dictionary.
- IGNORE
- Ignores the entries in the SGML (external) dictionary.
- COMBINE
- Combines the entries in the SGML (external) dictionary file with the entries in the existing (internal) dictionary. This is the default. That means if nothing is specified, the system assumes that you want to combine the dictionary entries.
- If you specify more than one value you have to enclose the values in parenthesis and seperate them using the comma; e.g. /OPTIONS=(ANSI,REPLACE) to import a dictionary in Ansi format and replace existing dictionary entries with the imported entries.
- /PAssword
- password specifies the password of the dictionary to which the SGML file is to be imported (if this dictionary is write-protected). If the dictionary is write-protected and no password is entered, processing stops.
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to import a dictionary using the OpenTM2cmd command.
Example
OpenTM2cmd /task=dicimp /files=d:\mymemo.sgm /options=replace /dict=newmemo
In this example, the dictionary file mymemo.sgm, which is in external (SGML) format, is imported to the existing dictionary newmemo. The entries in mymemo.sgm replace the entries in newmemo.
Deleting documents
Purpose
If you want to delete a document, using a command typed in your system’s command area instead of OpenTM2 windows might be quicker and more convenient.
Format
The following syntax diagram describes how you delete documents with the OpenTM2cmd command. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=DOCDEL
- DOCDELÂ specifies that you want to remove documents.
- /FLD=Â folder
- Specifies the name of the folder that contains the documents to be removed.
- /FIles=Â file_name
- file_name specifies the name of the document you want to remove. The file_name specification can include the drive and directory where the file to be removed is found.
- If you specify several documents, enclose the document names in brackets and separate them by commas.
- If you want to specify a list of document names in a list file, refer to this list file by preceding the list file name with the @ symbol (@list_file_name). In the list file enclose the document names in brackets and separate them by commas.
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to delete documents using the OpenTM2cmd command.
Example
OpenTM2cmd /task=docdel /fld=pharma /files=(med.txt) /quiet
In this example, the document med.txt is removed from folder pharma without prompting the user.
Exporting documents
Purpose
If you have many large documents that you want to export, using the command area of your operating system instead of OpenTM2 windows might be more convenient.
Before exporting, ensure that:
- OpenTM2Â has been started.
- A folder exists that contains the documents to be exported.
The properties of the folder or of the documents give information on the used markup table and other document-related information that is necessary when exporting the respective documents.
To work from the command area, use the OpenTM2cmd command. Its syntax is described in the following chapter.
Format
The following syntax diagrams describe how you export a document from the Windows command area. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=DOCEXP
- DOCEXPÂ specifies that you want to export a document.
- /FLD=Â folder
- folder specifies the name of the folder containing the documents that you want to export.
- /STartpath=Â startpath
- startpath specifies the drive, directory, or both where the file exported is to be placed. The path information specified becomes part of, that is it prefixes, the name of the document. The directory specified must already exist.
- If you omit this parameter, the document is placed in the drive and directory specified in file_name. However, this drive and directory does not become part of the document name.
- /FIles=Â file_name
- file_name specifies the name of the document you want to export. The file_name specification can include the drive and directory where the file exported is to be placed. The subdirectory specified here must already exist.
- You can use the wildcard characters ‘*’ and ‘?’ in the name part of the parameter to export all documents matching the given name pattern (e.g. “C:\DOCEXP\*.DOC” to export all documents with a file name extension of “.DOC” to the directory “C:\DOCEXP”).
- If you specify several documents, enclose the document names in brackets and separate them by commas.
- If you want to specify a list of document names in a list file, refer to this list file by preceding the list file name with the @ symbol (@list_file_name). In the list file enclose the document names in brackets and separate them by commas.
- /OPtions=
- Specifies whether you want to export an original document (SOURCE), a translation (TARGET), a document with nonmatching segments (SNOMATCH), or a validation document (VALDOC).
- /VAL=
- Specifies additional options for the export of validation documents. These options control the format of the validation document (XML, HTML, DOC or ODT), the inclusion of protected segments (PROTSEGS) and allows to combine all exported documents into one validation document (COMBINE). If you specify more than one option, you must enclose them in brackets and seperate the individual options using a comma.
- /OVerwrite=
- Specifies whether an existing document is overwritten when exporting a document with the same name (NOÂ is the default).
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters.
Examples
The following example shows how to export a document using the OpenTM2cmd command with the TASK option.
Example
OpenTM2cmd /task=docexp /fld=pharma /files=c:\med.txt /options=target /overwrite=yes
In this example, the document to be exported is called med.txt. It is contained in folder pharma . The translation of med.txt is exported to the root directory of drive C. If med.txt already exists, it is overwritten.
The following example shows how to export documents in external format with a path.
Example
OpenTM2cmd /task=docexp /fld=sample1 /startpath=i:\transl /files=(test1\demo1.scr,test1\demo2.scr)
The document test1\demo1.scr is exported to i:\transl\test1\demo1.scr and the document test1\demo2.scr is exported to i:\transl\test1\demo2.scr.
The following example shows how to export all documents of the folder as validation format documents in HTML format and to combine them into a single document.
Example
OpenTM2cmd /task=docexp /fld=pharma /files=c:\valdoc\*.* /options=VALDOC /val=(HTML, COMBINE) /overwrite=yes
In this example, all documents of the folder pharma are exported in validation format and are combined into one HTML document. The combined document is stored in the directory C:\valdoc\ and has a name of pharma.html (When several documents are combined ino one validation document the name of the folder is used for the combined document).
Importing documents
Purpose
If you have many large documents that you want to import, using the command area of your operating system instead of OpenTM2 windows might be more convenient.
Before importing, ensure that:
- OpenTM2 has been started.
- A folder has been created. This folder can still be empty and will later contain the documents to be imported.
The properties of the folder give information on the used markup language and other document-related information that is necessary when importing the respective documents.
To work from the command area, use the OpenTM2cmd command. Its syntax is described in the following chapter.
Format
The following syntax diagram describes how to import from the command area of your operating system. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=DOCIMP
- DOCIMPÂ specifies that you want to import a document.
- /FLD=Â folder
- folder specifies the name of the folder where the documents imported are to be placed.
- /STartpath=Â startpath
- startpath specifies the drive, directory, or both, to be omitted from the document’s name. It only applies to documents imported in external format where the path in which the document resides normally becomes part of the document’s name.
- /FIles=Â file_name
- file_name specifies the name of the document you want to import. The file_name specification can include the drive and directory where the file to be imported is found.
- If you specify several documents, enclose the document names in brackets and separate them by commas.
- If you want to specify a list of document names in a list file, refer to this list file by preceding the list file name with the @ symbol (@list_file_name). In the list file enclose the document names in brackets and separate them by commas.
- /ALIAS=Â alias
- alias specifies an alias name for the document to be imported. If you import several documents, this alias name applies to all of them. The name can be up to 256 characters long.
- /OVerwrite=
- Specifies if an existing document will be overwritten when importing a document with the same name (NOÂ is the default).
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
- /EDit=Â editor
- Specifies the editor to be used for the imported document.
- /MArkup=Â markup
- Specifies the markup table to be used for the document.
- /CONV=Â conv
- Specifies the conversion to be used for the document.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to import several documents using the OpenTM2cmd command.
Example
OpenTM2cmd /task=docimp /fld=pharma /[email protected] /overwrite=no
In this example, the documents to be imported are listed in file medlist.lst. medlist.lst looks as follows:
medlist.lst
(d:\medset.doc, d:\medfrm.doc, d:\medb01.doc, d:\medb02.doc)
The file medlist.lst must be located either on the current directory, or (if it is not in the current directory) you must specify the complete path where it is located. For example, @d:\test\medlist.lst.
Note:Â There is a @ sign before the drive letter.
All files contained in medlist.lst are to be imported into folder pharma and are located in the root directory of drive D. If one of the files already exists in the specified folder, it is not overwritten and you get a message.
Examples
The following examples show how to import documents in external format with a path.
Assume that the following directories and files are on your V disk:
[proj1] [vers1] [mri] base.mri dialog.mri dialog2.mri message.osm [docs] intro.htm lesson.htm [vers2] [mri] base.mri dialog.mri dialog2.mri message.osm [docs] intro.htm lesson.htm
Example 1
OpenTM2cmd /task=docimp /fld=test /startpath=v:\ /files=(vers1\docs\*.htm,vers2\docs\*.htm)
In this example, the following documents are imported into folder test:
vers1\docs\intro.htm
vers1\docs\lesson.htm
vers2\docs\intro.htm
vers2\docs\lesson.htm
Example 2
OpenTM2cmd /task=docimp /fld=test /startpath=v:\vers1\ /files=(mri\*.*,docs\*.*)
In this example, the following documents are imported into folder test:
mri\base.mri
mri\dialog.mri
mri\dialog2.mri
mri\message.osm
docs\intro.htm
docs\lesson.htm
Example 3
OpenTM2cmd /task=docimp /fld=test /startpath=v:\vers1\ /files=(*.*)
In this example, the following documents are imported into folder test:
mri\base.mri
mri\dialog.mri
mri\dialog2.mri
mri\message.osm
docs\intro.htm
docs\lesson.htm
Example 4
OpenTM2cmd /task=docimp /fld=test /startpath=v:\ /files=(*.*)
In this example, the following documents are imported into folder test:
vers1\mri\base.mri
vers1\mri\dialog.mri
vers1\mri\dialog2.mri
vers1\mri\message.osm
vers1\docs\intro.htm
vers1\docs\lesson.htm
vers2\mri\base.mri
vers2\mri\dialog.mri
vers2\mri\dialog2.mri
vers2\mri\message.osm
vers2\docs\intro.htm
vers2\docs\lesson.htm
Example 5
OpenTM2cmd /task=docimp /fld=test /startpath=v:\vers1\docs /files=(*.htm)
In this example, the following documents are imported into folder test:
intro.htm
lesson.htm
Creating a folder
Purpose
If you need to set up new folders frequently, using the command area of your operating system instead of OpenTM2 windows might be more convenient.
To work from the command area, use the OpenTM2cmd command. Its syntax is described in the following chapter.
Format
The following syntax diagram describes how you create a folder from the Windows (R) command area. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=FLDCRT
- FLDCRTÂ specifies that you want to set up a new folder.
- /NAme=Â folder
- folder specifies the name of the new folder.
- /DEsc=Â desc
- desc specifies the description of the new folder (up to 40 characters). If none is specified, the folder will have no description and will be more difficult to relate to a specific project later on.
- /TOdrive=Â drive
- drive specifies the drive where the new folder is to be placed. It must be either the main drive or a drive that has been configured as additional drive.
- /MEm=Â memdb
- memdb specifies the name of an existing Translation Memory that is to be related to the new folder.
- /MArkup=Â markuptable
- markuptable specifies the name of a markup table that is to be related to the markup language of the documents that will be stored in the new folder.
- /EDit=Â editor
- editor specifies the name of an editor that is to be associated with the new folder (only STANDARD is possible).
- /DIct=Â dict
- dict specifies the name of a dictionary to be associated with the new folder. This parameter is optional, that is, it is not required that a dictionary is specified. If you specify several dictionaries, enclose the dictionary names in brackets and separate them by commas.
- /SRclng=Â source
- source is the source language of the documents stored in the new folder.
- /TGtlng=Â target
- target is the target language of the documents stored in the new folder.
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to create a folder using the OpenTM2cmd command.
Example
OpenTM2cmd /task=fldcrt /name=proj1 /desc="new folder" /todrive=e /mem=ibmmem /markup=eqfbook /edit=standard /dict=(ibmterm,ibm2) /srclng=German(national) /tgtlng=English(U.S.)
In this example, the folder to be created is called proj1 and is described as new folder. It will be located on drive E and will have the following translation resources attached to it:
- The Translation Memory ibmmem
- The dictionaries ibmterm and ibm2
- The markup table eqfbook
- The editor standard
The source language of the folder’s documents will be German (national), the target language will be English (U.S.).
Deleting a folder
Purpose
If you want to delete a folder, using a command typed in your system’s command area instead of OpenTM2 windows might be quicker and more convenient.
Format
The following syntax diagram describes how you delete a folder with the OpenTM2cmd command. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=FLDDEL
- FLDDELÂ specifies that you want to remove a folder.
- /FLD=Â folder
- Specifies the name of the folder that you want to remove.
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples The following example shows how to delete a folder using the OpenTM2cmd command.
Example
OpenTM2cmd /task=foldel /fld=pharma /quiet
In this example, the folder pharma is deleted without prompting the user.
Exporting a folder
Purpose
|If you need to set up new folders frequently, using the command area of your operating system instead of OpenTM2 windows might be more convenient. |To work from the command area, use theOpenTM2cmd command. Its syntax is described in the following chapter.
Format
The following syntax diagram describes how you export a folder from the Windows command area. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=FLDEXP
- FLDEXPÂ specifies that you want to export a folder.
- /FLD=Â folder
- folder specifies the name of the folder that you want to export.
- /FIles=Â document_name
- document_name specifies the name of a document to be exported.
- If you specify several documents, enclose the document names in brackets and separate them by commas.
- If you want to specify a list of document names in a list file, refer to this list file by preceding the list file name with the @ symbol (@list_file_name). In the list file enclose the document names in brackets and separate them by commas.
- If you do not specify the FIles option, all documents in the folder are exported.
- /TOdrive=Â drive
- drive specifies the drive where the folder is to be exported to.
- /ToPath=Â path
- path specifies the path where the folder is to be exported to. Start the path value with a backslash \. The default is \eqf\export.
- /OPtions=
- Specifies whether you want to export the folder with its dictionaries (DICT), with its Translation Memory (MEM), with its Translation Memory databases to be searched (ROMEM), with its Translation Memory and all the Translation Memory databases defined for its documents (DOCMEM), or whether you want to delete the folder after it has been exported (DELETE), or wether you want to export the folder as a master folder (MASTERFOLDER) or as a XLIFF translation pacakge (XLIFF).
A master folder exported without the MASTERFOLDER option becomes a child folder when it is reimported. If you specify more than one option, you must enclose them in brackets. The XLIFF option cannot be used together with the options DELETE and MASTERFOLDER.
- /OVerwrite=
- Specifies whether an existing folder is overwritten when exporting a folder with the same name (NOÂ is the default).
- /DEsc=Â desc
- desc specifies the notethat you want to add to the exported folder, or the name of a file containing the note. The text that gives more information about the exported folder must be enclosed in quotes. The specified note is displayed when the folder is being selected for import. It has nothing to do with the folder description which can only be changed using the folder properties window. If you specify a file that is containing the text, the name of the file must be preceded by the @ symbol.
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to export a folder using the OpenTM2cmd command.
Example
OpenTM2cmd /task=fldexp /fld=pharma /files=(161.scr,1500.scr) /todrive=e /options=(dict,mem) /desc="This is information on the folder"
In this example, the folder to be exported is called pharma. It is exported to drive E with the documents 161.scr and 1500.scr, with its associated dictionary and Translation Memory. The note This is information on the folder is added to the folder.
Importing a folder
Purpose
It might be more convenient to use a command instead of OpenTM2 windows to import a folder. This is especially useful if you have many folders that you want to import.
Format
The following syntax diagram describes how you import a folder from the Windows (R) command line. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=FLDIMP
- FLDIMPÂ specifies that you want to import a folder.
- /FLD=Â folder
- folder specifies the name of the folder that you want to import.
- /FRomdrive=Â drive
- drive specifies the drive where the folder is imported from.
- /FromPath=Â path
- path specifies the path where the folder is imported from. Start the path value with a backslash \. The default is \eqf\export.
- /OPtions=
Specifies whether you want to import the folder with its associated dictionary (DICT), with its Translation Memory (MEMÂ ) or if you want to import a XLIFF package (XLIFF). If you specify more than one option, you must enclose them in brackets and separate them with commas.
- /TOdrive=Â drive
- drive specifies the drive where the folder is to be imported to. If nothing is specified, the folder is imported to the drive where the OpenTM2 program files are located.
- /ToPath=Â path
- path specifies the path where the folder is to be imported to. Start the path value with a backslash \. The default is \eqf\export.
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
- /EDit=Â editor
- Specifies the editor to be used for the imported folder.
- /MArkup=Â markup
- Specifies the markup table to be used for the imported folder.
- /CONV=Â conv
- Specifies the conversion to be used for the imported folder.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to import a folder using the OpenTM2cmd command.
Example
OpenTM2cmd /task=fldimp /fld=pharma /fromdrive=a /todrive=e /options=(dict,mem)
In this example, the folder to be imported is called pharma. It is imported from drive A to drive E together with its associated dictionary and Translation Memory.
Creating a Translation Memory
Purpose
To set up a new Translation Memory, it might be more convenient to use a command instead of using OpenTM2 windows.
Format
The following syntax diagram describes how you create a Translation Memory from the Windows (R) command line. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=MEMCRT
- MEMCRTÂ specifies that you want to set up a new Translation Memory.
- /NAme=Â memdb
- memdb specifies the name of the new Translation Memory.
- /DEsc=Â desc
- desc specifies the description of the new Translation Memory (up to 40 characters). If this parameter is not specified, the new Translation Memory will have no description.
- /TYpe=
- Specifies whether the new Translation Memory is to be shared among several OpenTM2 users (SHARED) or if it is a local one which can be used only by you (LOCAL). If you omit this parameter, LOCALis assumed.
- /TOdrive=Â drive
- drive specifies the drive where the new Translation Memory is to be located.
- /SRclng=Â source
- source is the source language of the text segments stored in the new Translation Memory.
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to create a Translation Memory using the OpenTM2cmd command.
Example
OpenTM2cmd /task=memcrt /name=medmem /desc="new memory" /type=local /todrive=e /srclng=English(U.S.)
In this example, the new Translation Memory medmem is a local one and will be located on drive E. The source language of the stored text segments is English (U.S.).
Deleting a Translation Memory
Purpose
If you want to delete a Translation Memory, using a command typed in your system’s command area instead of OpenTM2 windows might be quicker and more convenient.
Format
The following syntax diagram describes how you delete a Translation Memory with the OpenTM2cmd command. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=MEMDEL
- MEMDELÂ specifies that you want to remove a Translation Memory.
- /MEm=Â memdb
- Specifies the name of the Translation Memory that you want to remove.
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples The following example shows how to delete a Translation Memory using the OpenTM2cmd command.
Example
OpenTM2cmd /task=memdel /mem=medmem
In this example, the Translation Memory medmem is deleted. You will be prompted with a message window.
Exporting a Translation Memory
Purpose
If you want to export a Translation Memory, using a command typed in your system’s command area instead of OpenTM2 windows might be more convenient.
Format
The following syntax diagram describes how you export a Translation Memory from the Windows (R) command line. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=MEMEXP
- MEMEXPÂ specifies that you want to export a Translation Memory.
- /OUT=Â mem_file
- mem_file specifies the name (along with the drive and directory) of a file where the Translation Memory specified in memdb is to be exported to. The file must have the extension EXP.
- /TYpe=
-
- ASCIIÂ specifies that the encoding of the exported memory should be in ASCII and the format is SGML (EXP).
- ANSIÂ specifies that the encoding of the exported memory should be in ANSI and the format is SGML (EXP).
- UTF16Â specifies that the encoding of the exported memory should be in Unicode (UTF-16) and the format is SGML (EXP).
- TMXUTF8Â specifies that the encoding of the exported memory should be inUTF-8 and the format is TMX.
- TMXUTF16Â specifies that the encoding of the exported memory should be in UTF-16 and the format is TMX.
- /MEm=Â memdb
- memdb specifies the name of the Translation Memory that you want to export.
- /OVerwrite=
- Specifies whether an existing Translation Memory file is to be overwritten when exporting the Translation Memory.
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to export a Translation Memory using the OpenTM2cmd command.
Example
OpenTM2cmd /task=memexp /out=d:\mymemo.exp /type=external /mem=oldmemo
In this example, the Translation Memory oldmemo is exported to the file d:\mymemo.exp.
Importing a Translation Memory
Purpose
To import a Translation Memory, you might find it more convenient to use a command instead of OpenTM2 windows. You might want to do this if you have many Translation Memory databases that you want to import.
Format The following syntax diagram describes how you import a Translation Memory from the command area. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=MEMIMP
- MEMIMPÂ specifies that you want to import a Translation Memory.
- /FIles=Â mem_file
- mem_file specifies the name of the Translation Memory that you want to import along with the drive and directory where it is located.
- /TYpe=
-
- ASCIIÂ specifies that it is an external Translation Memory (in SGML format) encoded in ASCII that you want to import.
- ANSIÂ specifies that it is an external Translation Memory (in SGML format) encoded in ANSI that you want to import.
- UTF16Â specifies that it is an external Translation Memory (in SGML format) encoded in Unicode (UTF-16) that you want to import.
- TMXÂ specifies that it is an external TMX Translation Memory that you want to import (the encoding can be either in UTF-8 or UTF-16).
- TMXTRADOSÂ specifies that it is an external TMX Translation Memory that you want to import (the encoding can be either in UTF-8 or UTF-16) and what RTF tags should be removed from the imported data.
- /MEm=Â memdb
- memdb specifies the name of an existing Translation Memory to which the Translation Memory specified in mem_file is to be imported to. The contents of these Translation Memory databases will then be merged.
- /QUIET
If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to import a Translation Memory using the OpenTM2cmd command.
Example
OpenTM2cmd /task=memimp /files=d:\mymemo.mem /type=UTF16 /mem=oldmemo
In this example, the Translation Memory mymemo.mem, which is in external format, is imported to the Translation Memory oldmemo.
Opening a document
Purpose
Instead of using OpenTM2 windows to open a document, you might find it more convenient to use a command.
Format
The following syntax diagram describes how you open a document from the Windows (R) command line. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=DOCOPEN
- DOCOPENÂ specifies that you want to open a document.
- /FLD=Â folder
- folder specifies the name of the folder that contains the document you want to open.
- /NAme=Â document_name
- document_name specifies the name of the document to be opened.
- /SEgment=Â segnumber
- segnumber specifies the number of the segment which is to be activated when the document is opened.
- /LIne=Â linenumber
- linenumber specifies the line number to which the cursor is positioned when the document is opened.
- /QUIET
- If you specify this parameter, you are not prompted with any message window. If you do not specify this parameter, a message window pops up whenever an error occurs or when the task has successfully completed.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to organize a Translation Memory using the OpenTM2cmd command.
Example
OpenTM2cmd /task=docopen /fld=sample1 /name=device.scr
This command opens the document DEVICE.SCR which is stored in folder SAMPLE1.
Organizing a Translation Memory
Purpose
To organize a Translation Memory it might be more convenient to use a command instead of OpenTM2 windows. It is particularly useful if you want to regularly organize several or all Translation Memory databases overnight.
Format
The following syntax diagram describes how you organize a Translation Memory with the OpenTM2cmd command. Note that lowercase letters in a parameter name are optional and need not be typed.
Parameters
- /TAsk=MEMORG
- MEMORGÂ specifies that you want to organize a Translation Memory.
- /MEm=Â memdb
- memdb specifies the name of the Translation Memory to be organized.
- If you want to specify several Translation Memory databases, enclose the Translation Memory database names in brackets and separate them by commas.
- If you want to specify a list of Translation Memory database names in a list file, refer to this list file by preceding the list file name with the @ symbol (@list_member_name). In the list file enclose the Translation Memory database names in brackets and separate them by commas.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to organize a Translation Memory using the OpenTM2cmd command.
Example
OpenTM2cmd /task=memorg /mem=sample1
In this example, the Translation Memory sample1 is organized.
Renaming a folder, a dictionary or a Translation Memory
Purpose
If you want to rename a folder, a dictionary or a Translation Memory using a command typed in your system’s command area instead of OpenTM2 windows might be quicker and more convenient.
Format
The following syntax diagram describes how you rename a folder, a dictionary or a TranslationMemory with the OpenTM2cmd command. Note that lowercase letters in a parameter name are optional and need not be typed.
For the rename of dictionaries:
For the rename of Translation Memory databases:
Parameters
- /TAsk=RENAME
- RENAMEÂ specifies that you want to rename a folder, dictionary or a TranslationMemory.
- /FLD=Â folder
- Specifies the name of the folder that you want to rename.
- /DICT=Â dicname
- Specifies the name of the dictionary that you want to rename.
- /MEM=Â memdb
- Specifies the name of the Translation Memory that you want to rename.
- /NEW=Â newname
- Specifies the new name for the folder, dictionary or Translation Memory.
- /ADJust=YES
- When specified OpenTM2cmd will change all occurences of the TranslationMemory name or dictionary name in the properties of folders and documents
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to rename a folder using the OpenTM2cmd command.
Example
OpenTM2cmd /task=rename /fld=pharma /new=pharmaceutical /quiet
In this example, the folder pharma is renamed to pharmaceutical without prompting the user.
The following example shows how to rename a TranslationMemory and adjust all references to the Translation Memory name automatically.
Example
OpenTM2cmd /task=rename /mem=MyMem /new=MyNewMem /adjust=yes
In this example, the Translation Memory MyMem is renamed to MyNewMem and all references to this memory in the properties of folders and documents are adjusted to use the new name.
Performing several tasks in one step
Purpose
Instead of typing all parameters in one line, you can use the /TASKLIST option and specify the parameters for any task in a separate file.
Format
Parameters
- /TASKLIST=list_of_tasks
- list_of_tasks is the name of a file containing a task description on each line, for example, parameters for several import or export requests (see examples).
- /QUIET
- If you specify the parameter in this format, you are not prompted with any message window. If you do not specify any of the /quiet paramaters, a message window pops up whenever an error occurs or when the task has successfully completed.
- /QUIET=NOMSG
- If you specify this parameter, you are not prompted with any message window. Any error message text is routed to stdout.
Note:Â You can type the commands in uppercase, lowercase, or in mixed-case letters. You may not use any wildcard characters, such as an asterisk (*).
Examples
The following example shows how to specify the export parameters in a separate file (taskexp.fil) to export several documents (med1.txt and med2.txt) and then call the OpenTM2cmd command with a reference to this file.
taskexp.fil
/task=docexp /fld=pharma /files=c:\med1.txt /options=target /overwrite=yes /task=docexp /fld=pharma /files=c:\med2.txt /options=target /overwrite=yes
Enter the OpenTM2cmd command as follows:
Example
OpenTM2cmd /tasklist=taskexp.fil
This lets you export more than one document with one command. All OpenTM2cmd tasks can be combined.
The next example shows how to specify the import parameters in a separate file (taskimp.fil) to import several documents listed in two files (@meddoca.lst and @meddocb.lst) and then call the OpenTM2cmd command with a reference to this file.
taskimp.fil
/task=docimp /fld=pharma /[email protected] /overwrite=no /task=docimp /fld=pharma /[email protected] /overwrite=no
Enter the OpenTM2cmd command as follows:
Example
OpenTM2cmd /tasklist=taskimp.fil
This lets you import more than one document with one command. All OpenTM2cmd tasks can be combined.