Skip to main content

How to execute a command in CLI, and the IDF automatically closes at the end of execution?

  • June 25, 2021
  • 2 replies
  • 1 view

Henrique Oliveira

For example, if you run:

/sto /mwr=ws XPTO

after processing the IDF opens informing you that it has finished running. Would it be possible to run the command and the screen close automatically?

2 replies

David Akerman
Forum|alt.badge.img

For example, if you run:

/sto /mwr=ws XPTO

after processing the IDF opens informing you that it has finished running. Would it be possible to run the command and the screen close automatically?

Setting $TRANSCRIPT_LOG_FILE (uniface.com) in the assignment file will write the transcript to a file and close the transcript window automatically.

You can run the command from a batch script by using the contents of your shortcut with the parameters instead of ? at the end. If running an application in batch mode from the command line it's a good idea to use the /bat switch as well, but that isn't necessary for IDE actions.


Henrique Oliveira

Setting $TRANSCRIPT_LOG_FILE (uniface.com) in the assignment file will write the transcript to a file and close the transcript window automatically.

You can run the command from a batch script by using the contents of your shortcut with the parameters instead of ? at the end. If running an application in batch mode from the command line it's a good idea to use the /bat switch as well, but that isn't necessary for IDE actions.

Worked like a charm, thanks.