How can I launch a VB.NET 2005 exe from a vb6 exe?
Posted on 2007-08-07
Is there a way for me to launch a VB.NET 2005 exe from a vb6 exe?
I created a stand-alone vb.net 2005 app. I built it. I installed it using ClickOnce.
It created all the subdirectories and burried it somewhere deep within my system.
It also created an "Application Reference" in the Start - Programs menu.
I cannot figure out how to accss this application from code in vb6.
dim NetApp as long
NetApp = Shell("C:\Documents and Settings\MyComp\Start Menu\Programs\NetApp\NetApp", vbMaximizedFocus")
but that doesnt work. it says the file cannot be found.
I cannot hard code the exe's location in the vb6 app because it installs to a different folder on everyone's PC.
Does anyone know how to do this? Is it possible?
I dont need to use any variables or any data from the .NET app in the vb6 exe, i just need to launch it.