by Didier >> Tue, 21 Apr 2009 9:05:52 GMT
Hi:
In VS2008, we can use the following logic to get the last HardDisk Id ============================================================================================= using System;
using System.Management;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write( "Hard Disk Id:" + this.GetDiskID() );
}
public string GetDiskID()
{
try
{
//get hard disk Id
String HDid = "";
ManagementClass mc = new ManagementClass("Win32_DiskDrive");
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)
{
HDid = (string)mo.Properties["Model"].Value;
}
moc = null;
mc = null;
return HDid;
}
catch
{
return "unknow";
}
finally
{
}
}
} ================================================================================================ After import the System.Management component into Jade.
How to get the HardDisk Id in Jade ?
Is possible get hard disk id using the imported component jade class ?
If can, please show me the example in jade.
Appreciate for any help.
Didier
2009.4.21