Dim installpath As String = String.Empty
installpath = Microsoft.Win32.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\World of Warcraft", "InstallPath", "")
If Directory.Exists("installpath" & "\Data\enUS\realmlist.wtf") Then
Dim fs As New FileStream(installpath & "\Data\enUS\realmlist.wtf", FileMode.Create, FileAccess.Write)
Dim s As New StreamWriter(fs)
s.WriteLine("set realmlist 65.75.241.232 ")
s.Close()
Else
If Directory.Exists("installpath" & "\Data\enGB\realmlist.wtf") Then
Dim fs As New FileStream(installpath & "\Data\enGB\realmlist.wtf", FileMode.Create, FileAccess.Write)
Dim s As New StreamWriter(fs)
s.WriteLine("set realmlist 65.75.241.232 ")
s.Close()
End If