I was wondering if it was possible to be able to control/get the system volume, get network information (i.e is it a wired or wireless connection, name of network, etc.) and get battery information with VB.Net using Mono on Ubuntu 12.10? Thanks.
Asked
Active
Viewed 284 times
0
-
I have to ask; why would you use VB.Net for this? Most of the information you're after is easily obtainable through shell commands (bash). – timss Apr 21 '13 at 03:49
-
I am creating a system information program, written in VB.Net and need to be able to get the System volume, etc. to be displayed inside the program. I know I can control it through the terminal but I want to be able to read it inside the program. – TheRyan722 Apr 21 '13 at 03:53
-
All right. it's probably easier to use a language with native integration with the operating system though, like Python. – timss Apr 21 '13 at 03:54
1 Answers
0
You can use the System.Diagnostics.Process class to call out to the shell and invoke the commands / get the information you require. There is an example here.

TheNextman
- 12,428
- 2
- 36
- 75
-
It worked, but is there any way to prevent the terminal from showing up on linux? – TheRyan722 Apr 22 '13 at 01:13
-
@TheRyan722 On Windows, setting the process `CreateNoWindow` and `WindowStyle = ProcessWindowStyle.Hidden` properties would work; on Linux I'm not so sure – TheNextman Apr 22 '13 at 10:05