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 using
Code:
Environment.OSVersion.ToString()
in an if statement sorta like this:
Code:
If Environment.OSVersion.ToString() = "OS" Then
            'the code that works for the OS in the = ""
        End If
my problem is that I don't know how to set my .ToString() = "" any thoughts?