Hello Kelly,
You can determine the path of your exe file if you include it in the
installer for your add-in. Then, you can have it install anywhere you want
it (within reason, of course) and not have to worry about guessing the
location.
HTH,
Kyril
"kellyxie" <(E-Mail Removed)> wrote in message
news:40f6e761$(E-Mail Removed)...
> Hello all,
>
> I am working on an Add-in to the .NET framework using C#. I need to
> call another .exe file in my application.
>
> Right now I can only make it work using the absolute path for that
> exe file like this way:
>
> myProcess.StartInfo.FileName = "C:\\Documents and
> Settings\\user\\translator.exe";
>
> However I want others to be able to use this add-in in other
> computers. Where shall I put this .exe file? What path shall I
> provide in the code?
>
> I am very green in this field. Thanks a lot for your help.
>
> Kelly
>
|