OS-COMMANDSILENT NO-WAIT NO-CONSOLEcommand-token VALUE ( expression )After processing an operating system command, the AVM shell pauses. To exit the window in Windows GUI platforms, you must type exit. To exit the window in Windows character platforms, you must type exit and press RETURN or SPACEBAR. You can use the SILENT option to eliminate this pause. Use this option only if you are sure that the program, command, or batch file does not generate any output to the screen. Cannot be used with NO-WAIT.command-token VALUE ( expression )One or more command words and symbols that you want to pass the operating system to execute. The VALUE option generates the command tokens included in expression, a character string expression. The specified combination of command-token and VALUE(expression) options can form any legal combination of commands and command options permitted by the operating system. These can contain Unicode characters. See OpenEdge Development: Internationalizing Applications for more information about Unicode.
DEFINE VARIABLE comm-line AS CHARACTER NO-UNDO FORMAT "x(70)".REPEAT:UPDATE comm-line.OS-COMMAND VALUE(comm-line).END.
If you want to run an operating system internal command, such as Windows dir, do not use the NO-WAIT keyword. The results are unpredictable.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |