Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR: System.ComponentModel.Win32Exception: ApplicationName='upower', CommandLine='-i /org/freedesktop/UPower/devices/battery_BAT0', CurrentDirectory='', Native error= Out of memory
- Dim ret As String = ""
- Dim proc As New System.Diagnostics.Process()
- proc.StartInfo.FileName = file 'i.e upower
- proc.StartInfo.Arguments = arguments 'i.e. -i /org/freedesktop/UPower/devices/battery_BAT0
- proc.StartInfo.UseShellExecute = False
- proc.StartInfo.RedirectStandardOutput = True
- proc.Start()
- ret = proc.StandardOutput.ReadToEnd()
- proc.WaitForExit()
- Return ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement