Douwe Siegersma Member Licensed User Longtime User Feb 22, 2019 #1 I use the following code to open a DOS box. I thought the "/k" option would keep it open but it doesn't. B4X: Dim lijst As List lijst.Initialize lijst.Add("/k") Shll.Initialize ("shll","c:\windows\system32\cmd.exe",lijst) Shll.Run(-1)
I use the following code to open a DOS box. I thought the "/k" option would keep it open but it doesn't. B4X: Dim lijst As List lijst.Initialize lijst.Add("/k") Shll.Initialize ("shll","c:\windows\system32\cmd.exe",lijst) Shll.Run(-1)
Daestrum Expert Licensed User Longtime User Feb 22, 2019 #2 B4X: sh.Initialize("shll","cmd",Array("/K","start")) sh.Run(-1) NOTE - when run from the IDE the cmd window will appear to close, it doesn't, it just goes to task bar. Upvote 0
B4X: sh.Initialize("shll","cmd",Array("/K","start")) sh.Run(-1) NOTE - when run from the IDE the cmd window will appear to close, it doesn't, it just goes to task bar.
Douwe Siegersma Member Licensed User Longtime User Feb 23, 2019 #3 Hello, Thank you for your reply. And it works fine! Upvote 0