DONTWAIT
From QB64 Wiki
_DONTWAIT is used with the SHELL statement to specify that the program shouldn't wait until the SHELLed command/program is finished (which it otherwise does by default).
- SHELL [_DONTWAIT] [commandline$]
Description:
- Can only be used in the SHELL statement when using QB64.
- Runs the command/program specified in commandline$ and lets the calling program continue at the same time in it's current screen format.
- Especially useful when CMD /C or START is used in a SHELL command line to run another program.
- QB64 automatically uses CMD /C or COMMAND /C when using SHELL.
- QB64 program screens will not get distorted or minimized like Qbasic fullscreen modes could.
Code Examples:
SHELL _DONTWAIT "notepad " + filename$ FOR x = 1 TO 5 _LIMIT 1 PRINT x NEXT
(opens up notepad at the same time as counting to 5)
1 2 3 4 5
See also: