Hello all,
I have developed a GUI in C#. It selects a file using openFileDialog
and
passes the filename to a C executible run.exe where the file is
processed.
Process.Start("run.exe",filename); //is defined in
System.Diagnostics;
The problem is that the program seaches for run.exe in the directory
where the file was choosen and is not able to find the run.exe since
it
is in the location where the c# executible is.
When the run.exe and the file are in the same folder it works
perfectly.
I dont want to hardcore the path of run.exe. Is there any alternative
that it takes run.exe from the base folder(where c# executible is)
rather than searching it in the folder where the file is.
I follow this approach because I am good in c and poor in c#. Also
the
type of work which I am involved is a computational intensive work
and
better memory management is possible in C.
Thanks in advance
Jai Prakash
NOTE: I use Borland C# personal edition
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Microsofts_C_Sharp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/