How to issue a command line instruction. [SOLVED]

Windows specific forum
BarryG
Addict
Addict
Posts: 1565
Joined: Thu Apr 18, 2019 8:17 am

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

Post 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.
Marc56us
Addict
Addict
Posts: 1071
Joined: Sat Feb 08, 2014 3:26 pm
Location: France

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

Post 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:
(English is not my native language, I use an online translator.)
Post Reply