Help finding an application path in windows

2012-04-21 Thread Ian McKnight
Hi I'm am able to launch a file in Excel directly from LC but I do not want to hard code the path to excel in my app. The following code works but is this the best way to handle this situation? What would happen if Office were upgraded for example? put $programFiles &"\" into tProgramFilesPath

Re: Help finding an application path in windows

2012-04-22 Thread Ken Ray
On Apr 21, 2012, at 8:16 AM, Ian McKnight wrote: > Hi > > I'm am able to launch a file in Excel directly from LC but I do not want to > hard code the path to excel in my app. I'm not at my PC to confirm this at the moment, but according to a web search, you should be able to do this (watch for

Re: Help finding an application path in windows

2012-04-24 Thread Ian McKnight
Hi Ken Thanks for the suggestion - it worked perfectly when I included a last "\" at the end of the path. Regards Ian McKnight On 22 April 2012 12:50, Ken Ray wrote: > > On Apr 21, 2012, at 8:16 AM, Ian McKnight wrote: > > > Hi > > > > I'm am able to launch a file in Excel directly from LC bu