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 - 3 hours ago



Users browsing this thread: 2 Guest(s)