How to Open an installed program on command?
Posted on 2004-09-13
I have a program/exe installed on a server that is accessable from a client machine.
On the client machine the drive and is mapped to X:\ drive. The exe is in X:\program files\myprogram.exe.
I'm using VB6
I want to open the program from the client machine using a command button on a form so the user can just click that button and open the application.
Usually I do on button click C:\program files\the-program-I-want.exe but this program doesn't seem to like that.
It opens the program ok but then the myprogram.exe crashes.
If I create a shortcut to myprogram.exe on my desktop and double click it, myprogram.exe opens just fine!
What could be causing this...any code would be appreciated :)