Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run command
#1
What is the command in qbasic to run a file?
Reply
#2
If you want to run another .BAS file you can use the RUN statement - http://qbasicnews.com/qboho/qckrun.shtml or CHAIN statement - http://qbasicnews.com/qboho/qckchain.shtml
If you want to run another file using the Operating System (.EXE/.BATs/etc) you can use the SHELL statement - http://qbasicnews.com/qboho/qckshell.shtml

It all depends on what you want to do and how.
Reply
#3

Good answer!

The only thing I would add is it sometimes necessary to add CMD /c

SHELL "cmd /c xxxxxxx"

where xxxxxx is the command that you are running via SHELL and it is not running correctly because QBasic invokes the COMMAND.EXE rather than the CMD.EXE that you are probably used to.

Mac
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)