• write a string in cmd prompt

    From Marco Boschi@21:1/5 to All on Thu Apr 6 06:10:40 2023
    Hi,
    how can I, at the end of the execution of my console program, to prepare in the cmd prompt a command such as "dir a*.exe /OD" or RIND.EXE customer that I can confirm by Return key, modify or cancel?
    I launch
    c:\hse>select.exe
    I select a file when select.exe ends its execution i will find in cmd prompt this
    c:\hse>rind.exe customer
    Many thanks to all

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dlzc@21:1/5 to Marco Boschi on Thu Apr 6 09:12:36 2023
    On Thursday, April 6, 2023 at 6:10:41 AM UTC-7, Marco Boschi wrote:
    Hi,
    how can I, at the end of the execution of my console program, to prepare in the cmd prompt a command such as "dir a*.exe /OD" or RIND.EXE customer that I can confirm by Return key, modify or cancel?
    I launch
    c:\hse>select.exe
    I select a file when select.exe ends its execution i will find in cmd prompt this
    c:\hse>rind.exe customer
    Many thanks to all

    How about making that a menu choice at the end of SELECT.EXE, whether to end or call up RIND.EXE?

    You might try stuffing the characters in the keyboard buffer, letting them supply the <Enter>
    https://www.itlnet.net/programming/program/Reference/tools1-3/ngc1397.html
    ... pretty sure Clipper Tools was implemented by default. Note 15 character maximum.

    But I am afraid the your program will terminate, and the keystrokes will be consumed by either CMD.exe or the Windows interface.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)