Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shell "dir" -- I expected something, but ..
#3
Notice that it is in the middle of the night here (Wyoming).  I was thinking about this -- I MAY have thought of your ">" answer.

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.
Reply


Messages In This Thread
RE: Shell "dir" -- I expected something, but .. - by dcromley - 05-03-2022, 07:59 AM



Users browsing this thread: 2 Guest(s)