public int GetChannel(string mac)
{
while ((netshline = sr.ReadLine()) != null)
{
if(netshline.IndexOf("Channel") > 0)
{
mac = netshline.Substring(netshline.IndexOf(":") + 1).ToString();
}
}
return mac;
}
in return mac i am getting error
Loading
Joxin StanlyPosted Aug 17, 2013, 12:58 PM
mac =Convert.ToInt32( netshline.Substring( netshline.IndexOf(":") + 1) );
hope this helps...
Iftikar HussainPosted Aug 17, 2013, 11:48 AM
If you are sure that it will return integer value then you can convert it
int result=0;
Regards,
Iftikar