I'm writing a small script in visual basic, and I want the main window to display the system specs (os, processor, ram, etc).
How can I do this? What script would it take?
In visual basic, how can I make the program I'm writing display the system details?
VB.NET
This is a link to a code project article for using VB.NET
http://www.freevbcode.com/ShowCode.Asp?I...
VB6
Here is a link to get some of that info for VB6
http://www.andreavb.com/tip020012.html
Reply:VB or VBScript?
If it's in VB, add an About dialog to the program and look at the code. (It's in StartSysInfo, and you'll have to include the declarations at the top.) Then you can use that code on one of your forms. (Why write code when you can steal it legally?)
Reply:If you are using VB.NET 2005 or above this functionality is built in using the new "My" Keyword and then "Computer" property.
If you are using any lower version (2003,VB6,Vbscript) you would want to connect to WMI and pull the information real time from the system. Here is a basic example its in C# but its easy to read: http://www.c-sharpcorner.com/UploadFile/...
Hope this helps,
Cheers
botanical garden
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment