DONTWAIT: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
TheSnowDog (talk | contribs) m (QBasic capitalisation) Tag: visualeditor |
No edit summary |
||
Line 9: | Line 9: | ||
{{PageDescription}} | {{PageDescription}} | ||
*Runs the command/program specified in {{Parameter|commandline$}} and lets the calling program continue at the same time in its current screen format. | *Runs the command/program specified in {{Parameter|commandline$}} and lets the calling program continue at the same time in its current screen format. | ||
*Especially useful when CMD /C or START is used in a SHELL command line to run another program. | *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''' automatically uses CMD /C or COMMAND /C when using SHELL. | ||
* '''QB64''' program screens will not get distorted or minimized like QBasic fullscreen modes would. | * '''QB64''' program screens will not get distorted or minimized like QBasic fullscreen modes would. | ||
Revision as of 01:31, 23 January 2023
_DONTWAIT is used with the SHELL statement in QB64 to specify that the program shouldn't wait until the external command/program is finished (which it otherwise does by default).
Syntax
- SHELL [[[:Template:KW]]] [commandLine$]
Description
- Runs the command/program specified in commandline$ and lets the calling program continue at the same time in its 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 would.
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