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"
thanks.
TechMonsterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CodeCruiserCommented:
I think if you just provide the exe name then the current folder will be search first. So

Process.Start("filename.exe")
0
Bob LearnedCommented:
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.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Reza RadConsultant, TrainerCommented:
and what is relation of this question to SSIS?
0
Bob LearnedCommented:
I would think that this is code for a script task, but that is only my guess...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.