Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shell issues
#2
(05-05-2025, 03:03 AM)eoredson Wrote: When using Shell with no parameters the program displays a blank screen which cannot be exited
without going to Task Manager->Processes and manually right-click and end task!?

From reading the above, it sounds like you're writing a program such as this:
Code: (Select All)
SHELL

And then you mention this:
(05-05-2025, 03:03 AM)eoredson Wrote: Also, the Wiki says to use Shell "Cmd /C" or it may hang..

Looks to me like you wrote and answered yourself. What am I missing here?

If you read the CMD help info, you see this:

/C Carries out the command specified by string and then terminates...

If you're just looking to open a command window, and not have it automatically terminate, just do:

Code: (Select All)
SHELL "CMD"

That /C is for executing commands and closing after, so if you leave it blank, you execute nothing and then close. "CMD" alone should be all you need to open a command window and keep it open for whatever purpose.
Reply


Messages In This Thread
Shell issues - by eoredson - 05-05-2025, 03:03 AM
RE: Shell issues - by SMcNeill - 05-05-2025, 04:43 AM
RE: Shell issues - by eoredson - 05-07-2025, 12:26 AM
RE: Shell issues - by ahenry3068 - 05-07-2025, 03:56 AM
RE: Shell issues - by SMcNeill - 05-07-2025, 04:34 AM
RE: Shell issues - by eoredson - 05-07-2025, 04:39 AM
RE: Shell issues - by hsiangch_ong - 05-07-2025, 08:26 AM
RE: Shell issues - by eoredson - 05-10-2025, 02:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  code locks up when SHELL paulel 4 262 02-15-2026, 08:04 PM
Last Post: madscijr
  Help: Issues with the _PRINTSTRING and _INPUTBOX$ functions in QB64. qbfans 2 351 02-13-2026, 06:07 AM
Last Post: qbfans
  Breaking out of a Shell PhilOfPerth 3 535 07-02-2025, 02:59 AM
Last Post: PhilOfPerth
  Command$ issues eoredson 8 1,352 05-02-2025, 01:42 AM
Last Post: eoredson
  Multiple Text Box Issues for a Beginner Vespin 11 1,597 10-30-2024, 05:32 PM
Last Post: Vespin

Forum Jump:


Users browsing this thread: 1 Guest(s)