Problem:
Can a Dialog System .IMP-file be exported / imported from the command-line?
----
Importing the .IMP-file by the GUI-interface to a new screenset, duplicate "ESC and Window-Created-events" are reported.
OK, they could be manually deleted from the global dialog and the existing auto-created window. But (how) can this be done automatically by the import?
Resolution:
Yes, both are possible by using the command-line interface of the DSWIN.exe, e.g. from a Net Express Command Line. The command-line interface offers a possibility to overwrite the existing auto-created content of an "empty" screenset.
An export of the screenset can be initialized by:
/e screenset-name [output-filename]
The IMP-file can be imported by:
/i import-filename [screenset-name]
which can also be used to add the imp file to an existing screenset.
The /i may cause the same problems with ESC and WINDOW-CREATED events when importing by the GUI-interface.
The IMP-file can be imported by:
/io import-filename [screenset-name]
which will overwrite the existing content of the screenset.
Using the /io as parameter will get rid of the "ESC and WINDOW-CREATED events"-problem.
Hint: the start of DSWIN.exe from the command-line will return immediately to the prompt. DSWIN will run in background without any notification and it may take more than a moment until the .GS file is produced. So the *.gs file may not be seen in the directory, if the DIR command is entered immediatly after DSWIN returns to the command-line.
A full description of the parameters of DSWIN can be found in the online help.
Start the help and enter DSWIN to the "Search"-tab and select "Starting Dialog System",
or from the "Content"-Tab of the Net Express help:
- Programming
-- User Interface Programming
--- Dialog System Overview
---- Starting Dialog System
----- Starting from Command Line
