>Our application works off of settings stored in foxpro tables, like most VFP frameworks do. When we designed this functionality five years ago, the solution we used was using a shortcut (.lnk) file because we can specify the Target and Start In (which can be pointing to a different server) properties which are very integral to our application in finding the settings when it boots up.
Ramil,
I am still not sure why you need the .lnk. Both "Target" and "Start In" can be specified as parameters of ShellExecute, right? Maybe I am missing something here, but isn't Target the fullpath of the executable (lpFile) an Start In is the default directory (lpDirectory)?
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges