K
kimiraikkonen
Hello experts,
I want my external application run from the root folder where my
project (.exe) resides. For example, my main project (.exe) should be
in the same directory with my external file works with parameter "-b".
But i couldn't know where to insert application.startuppath. That code
block works OK but "doit.exe" only runs from "c:\". I want it to run
in any directory as enough to be in the same directory with my
compiled exe project. Here is my code:
Dim psInfo As New System.Diagnostics.ProcessStartInfo("c:\doit.exe", "-
b")
psInfo.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Normal
Dim myProcess As Process =
System.Diagnostics.Process.Start(psInfo)
myProcess.WaitForExit()
MsgBox("Completed", MsgBoxStyle.Information, "Completed")
How can i configure or put application.startup line?
Thank you.
I want my external application run from the root folder where my
project (.exe) resides. For example, my main project (.exe) should be
in the same directory with my external file works with parameter "-b".
But i couldn't know where to insert application.startuppath. That code
block works OK but "doit.exe" only runs from "c:\". I want it to run
in any directory as enough to be in the same directory with my
compiled exe project. Here is my code:
Dim psInfo As New System.Diagnostics.ProcessStartInfo("c:\doit.exe", "-
b")
psInfo.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Normal
Dim myProcess As Process =
System.Diagnostics.Process.Start(psInfo)
myProcess.WaitForExit()
MsgBox("Completed", MsgBoxStyle.Information, "Completed")
How can i configure or put application.startup line?
Thank you.