I'm building a website blocker, and it reads/writes the HOST file. I have it built for windows xp. I'm wanting to check the OS the person's using so that it can run the write code properly(b/c each OS the host file is in a different location). I was thinking about usingin an if statement sorta like this:Code:Environment.OSVersion.ToString()
my problem is that I don't know how to set my .ToString() = "" any thoughts?Code:If Environment.OSVersion.ToString() = "OS" Then 'the code that works for the OS in the = "" End If




Reply With Quote