-
Nov 29th, 2005, 08:14 PM
#1
Thread Starter
Addicted Member
Get system information [RESOLVED]
Hey all,
Is there a command/set of commands to get information about the system? Such as the BIOS' unique serial number / a network adaptor's MAC address / Windows Serial code/product code / that sort of thing? I'm trying to get the program to call up a couple of unique values to tie the program to a given system.
Last edited by BubbleLife; Nov 29th, 2005 at 08:40 PM.
-
Nov 29th, 2005, 08:19 PM
#2
Re: Get system information
Download Scriptomatic 2 from MS. It uses WMI and can get all the system info that you want.
http://www.microsoft.com/technet/scr.../scripto2.mspx
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
-
Nov 29th, 2005, 08:24 PM
#3
Re: Get system information
Here is a free OCX, that gives info about hardware, like HD Unique number.
LINK
-
Nov 29th, 2005, 08:31 PM
#4
Thread Starter
Addicted Member
Re: Get system information
Ahh, that seems handy, thanks
So, the code that it generates in that main window, How do I use it? Just paste it straight into VB?
EDIT: Jcis, Nice app also!
-
Nov 29th, 2005, 08:33 PM
#5
Re: Get system information
It generates WMI code but with a little tweaking it runs quite well in VB. Change the Echo's to MsgBox's and if you use Option Explicit then declare the variables as Objects or Variants.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
-
Nov 29th, 2005, 08:40 PM
#6
Thread Starter
Addicted Member
Re: Get system information
Ah, thanks (WMI?)
-
Nov 29th, 2005, 08:47 PM
#7
Re: Get system information [RESOLVED]
Windows Management Instrumentation. You can add a reference in your Project > References menu.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
-
Nov 29th, 2005, 08:49 PM
#8
Re: Get system information [RESOLVED]
You can also use WScript.exe and CScript.exe to run generated WMI scripts.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|