protected void hostfile_Click(object sender, EventArgs e) { try { string path = (@"\" + ipaddress + "\\C:\\Windows\\System32\\drivers\\etc\\hosts"); display.Text = (File.ReadAllLines(path)).ToString(); } catch { } }
\\192.168.0.0\C:\...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)