473,398 Members | 2,088 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,398 software developers and data experts.

harddisk number,CPU number and IP address

Hai,
I am having 3 questions,
1.How To find harddisk number in C#
2.How To find CPU number in C#
3.How to find IP address of the system in C#
where we are working.
Nov 16 '07 #1
3 2641
kunal pawar
297 100+
Do u know Envionmental Variable ??

These System.Net.environment Variable
Expand|Select|Wrap|Line Numbers
  1. Dim h As System.Net.IPHostEntry = Dns.GetHostByName(System.Net.Dns.GetHostName)
  2.  sMachineName = Environment.MachineName.ToString
  3.             Dim sUserName = Environment.UserName
  4.             Dim sIPAddress = (CType(h.AddressList.GetValue(0), IPAddress).ToString)
  5.             sHostName = Dns.GetHostName()
  6.  
Environment.CurrentDirectory
etc....
Nov 16 '07 #2
Plater
7,872 Expert 4TB
WMI can be used to get all of those things as well.
Nov 16 '07 #3
Frinavale
9,735 Expert Mod 8TB
Hai,
I am having 3 questions,
1.How To find harddisk number in C#
2.How To find CPU number in C#
3.How to find IP address of the system in C#
where we are working.
For the HardDrive number, take a look at the System.IO.DriveInfo Class.
Nov 16 '07 #4

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

Similar topics

15
by: tom | last post by:
Hi, How do I get the serial number of the harddisk in .NET? I want this to be the same number even if the user has reformatted, so I do not want the volume serial number. Thanx, t
2
by: JanakiRaman | last post by:
Hi, Can I install visual studio .NET 2003 from harddisk? Thanks in advance, JanakiRaman S
6
by: angus | last post by:
Dear All, how to read the and write a file to the client's harddisk when using asp.net? is it possible to do so? Thank you. Regards,
4
by: JoskeXP | last post by:
Hi I have pictures as Jpeg file on harddisk How can I load a picture from Harddisk in a PictureBox I have the name of the picture in a textbox (databinding with a Database Th JoskeXP
1
by: tyr | last post by:
I want to identify a harddisk over a network or any other component in a computer. The IP address did not work beccause it change everytime. The following code works fine on a single computer but...
4
by: ulaskaraoz | last post by:
Hi, I have a std::map instance that I want to save into harddisk so that I donot have to recompute it each time. The map itself is keyed by a string and the values are pointers to other objects....
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.