|
-
April 30th, 2009, 09:17 AM
#1
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)
End If
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")
s.Close()
Process.Start("c:/program files/world of warcraft/wow.exe")
End Sub
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|