B4J Question B4J Shell: how to start Windows "ms-settings" ?

peacemaker

Expert
Licensed User
Longtime User
Hi, All

Console window in Win10 allows to run command to open the system setting dialog:
start ms-settings:network-wifi

But Shell requires the full path to the executable file, that is unknown here.

B4X:
                    Dim sh As Shell
                    sh.Initialize("", "start", Array As String("ms-settings:network-wifi"))
                    sh.WorkingDirectory = File.DirTemp
                    sh.RunSynchronous(1000)
...gives:

java.io.IOException: Cannot run program "start" (in directory "C:\Users\VLAD-HP\AppData\Local\Temp"): CreateProcess error=2, The system cannot find the file specified.

How to run it ?
 
Top