Page 2 of 2

Re: How to issue a command line instruction. [SOLVED]

Posted: Sun Jul 18, 2021 12:32 am
by BarryG
davebar wrote: Sat Jul 17, 2021 3:04 pmI want the Windows version to appear and stay visible ONLY in the the command line window, without the MessageRequester.
Oh, I see. I thought you were after the output. Sorry.

Re: How to issue a command line instruction. [SOLVED]

Posted: Sun Jul 18, 2021 2:53 pm
by Marc56us
I now need to construct a string variable eg Command$ in order to get:
RunProgram("cmd.exe", Command$, #Null$, #PB_Program_Open)
The minimum (if the command launched in a window does not need to communicate with the program that launched it)

Code: Select all

Command$ = "ver"

RunProgram("cmd.exe"," /k " + Command$, "")
PS. See CMD /? to see differences between /C and /K and other possibilites.

:wink:

Re: How to issue a command line instruction. [SOLVED]

Posted: Thu Jul 29, 2021 1:05 pm
by xpectmore