Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

launching application from code.

Status
Not open for further replies.
Joined
Nov 28, 2002
Messages
121
Location
US
I am suppose to edit the following below to launch the correct program. What is this stuff:
("CLSID\{894CB887-EE61-11D1-B824-004033B07A82}\LocalServer32") in the method? isn't it suppose to be the path? What am I suppose to launch this:
"C:\Program Files\DQS\WinSPC_Test\Winspc32.exe"

Do I have to register it? If so, how?


Public Sub New()
Me.key = New String(100) {}
Me.value = New String(100) {}

Dim R As Microsoft.Win32.RegistryKey

R = Microsoft.Win32.Registry.ClassesRoot.OpenSubKey("CLSID\{894CB887-EE61-11D1-B824-004033B07A82}\LocalServer32")
Dim s As String = CStr(R.GetValue(vbNullString))
INI_LOC = Left(s, InStrRev(s, "\")) & "WinSPC.ini"

Me.Read_INI()
End Sub
 
That long string is the path to the value in the registry. Use regedit to see what's in there.

Then use System.Diagnostics.Process.Start(Path & Executable) to start the program.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
faq855-5802

Maybe I should place this in the VB.NET FAQ's as well as the ASP.NET FAQ's?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top