Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Feb : convert string from exe to full pathname e.g. WINWORD -> C:\Program files....

www.cryer.info
Managed Newsgroup Archive

convert string from exe to full pathname e.g. WINWORD -> C:\Program files....

Subject:convert string from exe to full pathname e.g. WINWORD -> C:\Program files....
Posted by:"Jason Chapman" (jason@nospamjac2.co.uk)
Date:Fri, 11 Feb 2005 18:08:16

I want to enhance the jvCreateProcess component to be able to handle the
application name just as WINWORD.  Not my area of exeprtese at all.  After
asking in another fora about how cmd etc manage to cope, without winword
being on the path, it was pointed out to me that you can search in the
registry under the current versions folder / key.  I can write the code to
do the conversion, but I was wondering whether this is too low level and I
should be doing it with an API call or something like that.

Anyone have any ideas?

Cheers,

JAC.

Replies:

www.cryer.info
Managed Newsgroup Archive