473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

VB.NET Windows forms - SysInfo

28
Can anyone tell me how to obtain the system info that is displayed from an "About" form by clicking a command button?

I was able to do it in VB6, but cannot find any documentation, or controls, to enable me to do it in VB.NET.
Jul 11 '08 #1
4 4036
Plater
7,872 Expert 4TB
Sysinfo? Like what happens when you right-click and choose properties on the "my computer" icon?
Jul 11 '08 #2
MickT
28
It gives, in effect, the specification of the computer; e.g. physical memory, etc.

The call in VB6 used code: -

Dim SysInfoPath As String

' Try To Get System Info Program Path\Name From Registry...
If GetKeyValue(HKEY_LOCAL_MACHINE, gREGKEYSYSINFO, gREGVALSYSINFO, SysInfoPath) Then
' Try To Get System Info Program Path Only From Registry...
ElseIf GetKeyValue(HKEY_LOCAL_MACHINE, gREGKEYSYSINFOLOC, gREGVALSYSINFOLOC, SysInfoPath) Then
' Validate Existance Of Known 32 Bit File Version
If (Dir(SysInfoPath & "\MSINFO32.EXE") <> "") Then
SysInfoPath = SysInfoPath & "\MSINFO32.EXE"


' Error - File Can Not Be Found...
Else
GoTo SysInfoErr
End If

Call Shell(SysInfoPath, vbNormalFocus)

Can this code be used in VB.NET, particularly "Shell"?
Jul 12 '08 #3
Plater
7,872 Expert 4TB
Why not just run msinfo32.exe?

All that code did was look in the registry to see if there was a path and then execute it.

Look at the Process class for how to run programs.
Jul 14 '08 #4
MickT
28
Many thanks for your help, Plater. Your suggestion worked a treat.

I obviously couldn't see the wood for trees.
Jul 16 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Madhava Patro | last post by:
Hi All, I have a requirement where i have to Shutdown Windows 2000 from a C# Application, my application is running as windows service. When I shutdown Windows it should not reboot again, It...
2
by: Polomint | last post by:
Does anyone know if there is a free System Information component available in .NET? I would like to retrieve all the SysInfo that the Microsoft System Information utility does and store it into a...
8
by: CRE | last post by:
Or more exactly, how does one access the windows API to do things like shutdowns ? --chris -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
2
by: Hannu | last post by:
hi. I get user id of access into my field by using CurrentUser object. How do I get user id of windows into my field? Is there any way to do it? Hannu
0
by: dtp | last post by:
This one has got me stumped. Is there a way to figure out the utilization of each processor in an MP system? (2P and above) Right now I use the NtQuerySystemInformation API to get busy and idle...
4
by: ryan | last post by:
is there a sysinfo control in VB.NET? If yes where can I find it.
1
by: John Robinson | last post by:
I have written a service in vb.net that can take several minutes to perform one iteration of its process loop. When windows is being shutdown is it possible to prevent windows from stopping my...
3
by: k.szczesny | last post by:
Hi, i'm new to HP-UX and of course 've got some issues... I want to make some use of sys/sysinfo.h but when running program i get: Invalid argument Here's a short code sample:
4
by: Podi | last post by:
I am trying to set the system time on my Windows computer, but avoid using the DOS command (date, time). Does anyone know what parameter to pass to function SetLocalTime? CSharp ref...
1
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.