shovon habib

shovon habib

  • NA
  • 2
  • 2k

com port

Sep 7 2014 5:21 AM
why this code doesn't show any result??
 
ManagementObjectCollection mReturn;
ManagementObjectSearcher mSearch;
mSearch = new ManagementObjectSearcher("Select * from Win32_SerialPort");
mReturn = mSearch.Get();

foreach (ManagementObject mObj in mReturn)
{
Console.WriteLine(mObj["Name"].ToString());
}
 
please help.

Answers (1)