Get Serial Number Hard Drive And Mother Bord In Program?
Aug 25, 2011How do to get serial number hard drive and mother bord in vb.net?
View 17 RepliesHow do to get serial number hard drive and mother bord in vb.net?
View 17 RepliesI would like to get the hard drive serial number.... to make a security feature for some software so it will only run on that hard drive... [URL]
View 13 RepliesHow can i get the hard drive Serial Number.The Physical one only I spent 1 hour on google the only examples i found all had errors
View 18 RepliesPHP
Dim searcher As ManagementObjectSearcher = New ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia")
For Each wmi_HD As ManagementObject In searcher.Get()
MessageBox.Show(wmi_HD("SerialNumber"))
Next
I am using this code for getting hard drive serial number its works ok with me but not working on my friends system and return an empty string.
My Dad made an application which had a feature that i want, basically his programme reads the users hard drive serial number and then multiplies it by say 12 and then divides it by 7 for example. This number is then shown as a 'Authorisation Code' which the user has to email to him and then his breaks it back down to the original hard drive serial number which he sends back which is the application serial number to activate it. I want to know how to read the actual hard drive serial number or a number that every computer has so i can do the same but i have searched everywhere and cannot find any examples for VB 2008 apart from one which didn't work
View 8 RepliesIs it possible to read the serial number of a USB drive using VB.
View 3 RepliesI've been checking endlessly on MSDN and the net in general trying to find out how to get the computer's "C:" drive serial number and also the GUID.Everything I've found seems to pointing to the System.Management library using the ManagementObject, but "ManagementObject" doesn't appear to be recognized by the IDE?!I've imported: System.Management, System.Management.Instrumentation, Microsoft.Win32 and System.IO, but ManagementObject is still coming up as an error.I'm aware I can simply access the registry to get the GUID, but can anyone simply give me the code to access these 2 elements please.
View 10 RepliesHow do I get the hard disk physical serial number like in that example: http:[url]...
View 5 Repliesi want 2 know that ,is there anyway to get hard disk serial number(Hard Disk , not Hard Drives) without using WMI.
View 7 RepliesCan anyone explain with program how to extract the serial number or unique ID of the hard disk. i need a clear explained program. i m using some tools but i couldn't really understand how they do it.
View 10 RepliesUsing Visual Studio 2010 does anyone know the best way to retrieve the serial number of the PC's hard disk using VB2010 (not VB6).
View 2 RepliesDim SerieDisco as String Dim SerDis As New FileSystemObject Public Const LDisk= "C" SerieDisco = SerDis.Drives(LDisk).SerialNumber In VB6 I did use this code and get the serial number of Driver C: But now I am traslating the application to VB 2008 and I don't know how i do it? The methot in VB 6 function with hard Drive, CD and memory card (usb)
View 9 RepliesI am trying to build an autorun application for windows 7 and I need to retrieve a drive's VOLUME serial number (the one that changes when you format it)
View 4 Repliesi have a question concering USB flash drives. I am building a Record Book with an Access 2007 database. When a user changes some information in the database i have built a procedure to create a backup of the database on a second hard drive. I was wondering if there is a way to find my USB flash drive serial number (either through coding or alternative ways) and specify that USB with that serial number as the location of the backup. As my program is at the moment, the backup is created from C to D. This can be a problem if on other computers there is no D drive or it's not a hard disk. By specifying the serial number to save the backup database to, should work on all pcs (theoretically). I am just not sure if this is possible in any way.
View 4 RepliesThe drive is connected via USB and the problem I'm having is that, periodically, while my code is executing, the usb drive seems to disconnect and reconnect. (Nothing to do with the program, but the drive itself).I want to find a way to prevent these temporary drive reconnects from interrupting my code. IE, i want to insure that whatever read or write that is requested is actually executed even in the case of a temporary drive interruption.
View 1 Repliesi am making a program in visual basic 2008 and when the program first starts up on acomputer/device i want it to come up with a screen that asks for a serial key. i also only want the serial key (that i give to the person i am giving the program to) to be accepted once.eg. if he copies the program and gives it to another person who takes it home, they have to enter a new one (that i would have to give them). if they enter the same key as person 1, i want to deny access.
View 4 RepliesI need to get my application to be installed on to the C: location in Visual Basic after ive published it.
View 7 RepliesI'm trying to get hard drive temperature data.I can get the temperature via MSStoragedriver_ATAPISmartData.And, I can get all sorts of drive info (model, serial #, etc. via the Win32PhysicalMediaClass.The trouble is trying to link the two together.I get this temperature info, but I don't know which drive it is.The only identifier I can get from MSStoragedriver_ATAPISmartData is InstanceName.That looks like it has the model number embedded in it, but I can't get model number in Win32 my question is how can I get the temperature data and realte it to a specific drive?
View 2 Repliesis there any way to find out the hard drive that windows is installed in? (local drive?)
View 4 RepliesAnyone know how i can get the harddrive id?
View 1 RepliesI would like to use the Windows Vista/7 defragmentation feature from my program. I can use a shell command to call defrag.exe, but there's no way to get the status that I know of. I would like to show a percentage and maybe what part of the process it's doing. Then when it's done get the results.
View 6 RepliesI have a VB.Net 2010 app and need to delete a file from the hard drive when the app opens up (cache file). What command will perform this action? I know the name in advance, so I can format the command right in the app.
View 1 RepliesI have made this program in which the user selects a number of directories and copies them all to an external drive. is there a way to detect when the user does something that involves writing data to the hard drive. When they do, I want my application to detect this and back up that file on the external drive as well so that the back up is always up to date.
[Code]...
How would I disable a device during runtime? I can do it by going to Device Manager and disable it from there, is there anyway I can do it from a program?
View 2 RepliesHow can I get VB.NET to find the folder that begins with "17014 -"? The actual Folder is called "17014 - Mr John Smith", but I want it to search only upto the "-" (hyphen) point.
I will then use this to check if the folder exists or not.
I am looking for a way to retrieve the temperature of hard drives in VB Express 2008. I have found posts at a few different places that accomplish this with the following:
[Code]...
[code] i need to find a way to loop through ALL the directory's on the "c" drive and not just the main folder.
View 4 Repliesi have this piece of code:
[Code]....
and it works just fine. However, saying that, i need to find a way to loop through ALL the directory's on the "c" drive and not just the main folder. Does anyone have any code that can do that?
have this piece of code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strFileSize As String = ""
[code].....
I want my code to open cmd and then change to an other hard drive. But instead bends lots of cmd come up.
I don't know what the problem is, but here is the code.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....