Guenter Becker Active Member Licensed User Longtime User Jul 11, 2026 #1 Hello, I like to use this sub in my project. But I do not know whwre the "as Process" comes from. Can anyone explain which library must be used. B4X: Copy Sub UninstallApp [B] [/B]Dim p As [B]Process[/B] Dim command As String command = "powershell -Command ""Get-AppxPackage *ExampleApp* | Remove-AppxPackage""" p.Initialize("cmd", command, "") p.Start End Sub
Hello, I like to use this sub in my project. But I do not know whwre the "as Process" comes from. Can anyone explain which library must be used. B4X: Copy Sub UninstallApp [B] [/B]Dim p As [B]Process[/B] Dim command As String command = "powershell -Command ""Get-AppxPackage *ExampleApp* | Remove-AppxPackage""" p.Initialize("cmd", command, "") p.Start End Sub
Erel B4X founder Staff member Licensed User Longtime User Jul 12, 2026 #2 You should use jShell: https://www.b4x.com/android/forum/threads/running-powershell-scripts.131116/#content Upvote 0
You should use jShell: https://www.b4x.com/android/forum/threads/running-powershell-scripts.131116/#content
Cableguy Expert Licensed User Longtime User Jul 12, 2026 #3 Guenter Becker said: Hello, I like to use this sub in my project. But I do not know whwre the "as Process" comes from. Can anyone explain which library must be used. B4X: Copy Sub UninstallApp [B] [/B]Dim p As [B]Process[/B] Dim command As String command = "powershell -Command ""Get-AppxPackage *ExampleApp* | Remove-AppxPackage""" p.Initialize("cmd", command, "") p.Start End Sub Click to expand... Another AI created sub... and its mirages! Upvote 0
Guenter Becker said: Hello, I like to use this sub in my project. But I do not know whwre the "as Process" comes from. Can anyone explain which library must be used. B4X: Copy Sub UninstallApp [B] [/B]Dim p As [B]Process[/B] Dim command As String command = "powershell -Command ""Get-AppxPackage *ExampleApp* | Remove-AppxPackage""" p.Initialize("cmd", command, "") p.Start End Sub Click to expand... Another AI created sub... and its mirages!