INPUT THROUGH on Windows flashes a console window

D.Cook

Member
Is there any way to stop that from happening? It's really annoying, and INPUT THROUGH is much more preferable to writing/reading/deleting temporary text files.

The documentation doesn't even acknowledge that the function might be used on Windows..
 

Stefan

Well-Known Member
Run it in a character client (_progres.exe) or on an AppServer ;).

The following rather pointless example (since OS-DIR does the trick better) demonstrates the issue.

Code:
DEF VAR cline AS CHAR NO-UNDO.


DEFINE STREAM str.


INPUT STREAM str THROUGH VALUE( "DIR c:\temp\*.p /b" ) NO-ECHO.


REPEAT:


   IMPORT STREAM str cline.
   DISPLAY cline FORMAT "x(32)".


END.

This statement seems to be missing syntax like NO-CONSOLE and SILENT that are available for OS-COMMAND.
 

D.Cook

Member
Thanks, but I'm hoping to fix this issue in GUI mode.

This statement seems to be missing syntax like NO-CONSOLE and SILENT that are available for OS-COMMAND.
Exactly, this inconsistency seems to have been successfully ignored..
 
Top