I need help with finding and opening wow.exe with VB
I can't find out how to find and open the program wow.exe using VB.
I can get it to open mine but it can't open other peoples they get errors when they try, I have xp and the Vista and other people can't get it to open theirs so I need to know how to find the file then open it.
The code I'm using is this:
Private Sub Play_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Play.Click
Dim installpath As String = String.Empty
installpath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\blizzard entertainment\world of warcraft", "installpath", Nothing)
If IO.Directory.Exists(installpath & "/cache") Then
IO.Directory.Delete(installpath & "/cache", True)
Dim fs As New IO.FileStream("realmlist.***", IO.FileMode.Create, IO.FileAccess.Write)
Dim s As New IO.StreamWriter(fs)
Dim path As String = ("HKEY_LOCAL_MACHINE\SOFTWARE\blizzard entertainment\world of warcraft")
s.WriteLine("set realmlist us.version.worldofwarcraft.com")
Process.Start("c:/program files/world of warcraft/wow.exe")
Re: I need help with finding and opening wow.exe with VB
Originally Posted by krazychild
it works on my comp but no one elses and the file stream i have it to set realm list
The fact that you have hard coded the paths may very well be an issue here. I do not understand why you would do that though since you have already put in code to determine where the files are installed why not use it?