0

os.system("powershell") on kotlin/java

How to run python's "os.system()" command in kotlin/java. I tried to execute "Runtime.getRuntime().exec("some command")" But I get the command executed in the background. How do I fix it 😔

15th Jul 2020, 3:38 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
2 Respostas
+ 2
Do you want to a terminal window to open when executing the code?
20th Jul 2020, 5:16 PM
Prabhakar Dev
Prabhakar Dev - avatar
+ 1
Yeah that is my question but not only terminal other terminal commands
27th Sep 2020, 6:56 PM
Ananiya Jemberu
Ananiya Jemberu - avatar