dtrieb Member Dec 7, 2022 #1 My code: B4X: app_title = TextField1.Text app_params = app_params & " --window-title= " & app_title Now I have a app_title with space. p.e.: hello world I want run this: B4X: shl.Initialize("shl", "cmd.exe", app_params) But the problem are the space in: hello world. How can I solved this problem? Thank you for your help!
My code: B4X: app_title = TextField1.Text app_params = app_params & " --window-title= " & app_title Now I have a app_title with space. p.e.: hello world I want run this: B4X: shl.Initialize("shl", "cmd.exe", app_params) But the problem are the space in: hello world. How can I solved this problem? Thank you for your help!
dtrieb Member Dec 7, 2022 #2 B4X: app_title = TextField1.Text app_params = app_params & " --window-title=" & app_title Upvote 0
W walt61 Active Member Licensed User Longtime User Dec 7, 2022 #3 B4X: shl.Initialize("shl", "c:\windows\system32\cmd.exe", Array As String("/K", "start", app_title)) Upvote 0
Magma Expert Licensed User Longtime User Dec 8, 2022 #4 may be need to put the hello world into quotes... "hello world".... chr(34) & "hello world" & chr(34) Upvote 0
may be need to put the hello world into quotes... "hello world".... chr(34) & "hello world" & chr(34)
Magma Expert Licensed User Longtime User Dec 8, 2022 #5 Also prefer use params as array or list B4X: shl.Initialize("shl", "cmd.exe", array(param1, param2, param3)) Upvote 0
Also prefer use params as array or list B4X: shl.Initialize("shl", "cmd.exe", array(param1, param2, param3))