05-03-2022, 07:59 AM
Notice that it is in the middle of the night here (Wyoming). I was thinking about this -- I MAY have thought of your ">" answer.
What console? A better question is, what happens to that console? Does it exist and then disappear? (yes) How can I make it wait? I googled "dos multi statement" and was led to https://stackoverflow.com/questions/8055371/. "&" What is the DOS "wait" command? More searching. "pause"
So, a program of interest is:
This shows my program console AND the SHELL console. Hitting "any key" (twice?) in the SHELL window ends that process and "returns" back to the QB64 window to print the "B".
The bottom line is that your ">" suggestion is the way to get SHELL output. Thanks.
Quote:dcromley: Where is the output going?
SMcNeill: To the console, where SHELL directs it to.
What console? A better question is, what happens to that console? Does it exist and then disappear? (yes) How can I make it wait? I googled "dos multi statement" and was led to https://stackoverflow.com/questions/8055371/. "&" What is the DOS "wait" command? More searching. "pause"
So, a program of interest is:
Code: (Select All)
Print "A"
Shell "dir & pause"
Print "B"
This shows my program console AND the SHELL console. Hitting "any key" (twice?) in the SHELL window ends that process and "returns" back to the QB64 window to print the "B".
The bottom line is that your ">" suggestion is the way to get SHELL output. Thanks.