System.Diagnostics.Process.Start to run exe in same folder as VB Application

have a VB 2005 application which uses System.Diagnostics.Process.Start to start exe files.
The exe files are under the same folder as the VB application.

This application is published in different locations.  what I need is to know is
how to write the process.start parameters to run the exe no matter where the VB is published.

I keep thinking it is something like
System.Diagnostics.Process.Start ("..Folder\app.exe"
Who is Participating?
Bob LearnedConnect With a Mentor Commented:
Another approach is to build a full-path specification, combining the name with the Application.StartupPath:

     Dim fileName As String = IO.Path.Combine(Application.StartupPath, "app.exe")

If you are talking about files in the project folder, when you are running in the IDE, then that would be a totally different story.

CodeCruiserConnect With a Mentor Commented:
I think if you just provide the exe name then the current folder will be search first. So

Reza RadConsultant, TrainerCommented:
and what is relation of this question to SSIS?
Bob LearnedCommented:
I would think that this is code for a script task, but that is only my guess...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.