PC Review


Reply
Thread Tools Rate Thread

Call a process in a .NET add-in

 
 
kellyxie
Guest
Posts: n/a
 
      15th Jul 2004
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

 
Reply With Quote
 
 
 
 
Kyril Magnos
Guest
Posts: n/a
 
      15th Jul 2004
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
>



 
Reply With Quote
 
kellyxie
Guest
Posts: n/a
 
      16th Jul 2004
Hello Kyril,

Thanks a lot for your reply. Can you explain a bit more how to include
it in the installer?

There are 2 folders created when I first created the add-in. Do you
mean the set up folder? I just add the .exe to it and chaned the code
to
myProcess.StartInfo.FileName = "translator.exe";
but it said it couldn't find the file.

Thanks,
Kelly

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call a Sub Process Eugenio.Net Microsoft VB .NET 2 31st Jul 2006 03:16 PM
Process Call to Windows application Stephen Microsoft ASP .NET 4 21st Dec 2005 04:40 PM
Inter-Process Call Sakharam Phapale Microsoft C# .NET 1 19th Jan 2005 02:47 PM
Inter-Process Call Sakharam Phapale Microsoft VB .NET 2 19th Jan 2005 10:39 AM
remote process call lee dugger Windows XP Security 1 13th Aug 2003 06:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:07 PM.