Would anyone be able to tell me how to pull the server name out of a UNC?
ex.
//servername/directory/directory
Edit : I apologize but it looks like I nee
Ugly but it just works:
var host = uncPath.Split(new [] {'\\'}, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault();