0

I want to import and run a another app using Process.Start. But I cannot import exe files to my vb project. How do I do this... Again, I want to add another exe file to my project... I know how Process.Start works but it's only run program out of this project.
Thank you

Trevor
  • 7,777
  • 6
  • 31
  • 50

1 Answers1

0

In general you have two options.

  1. You can ship/pack/distribute the other exe with your programm. And just execute it from the path that your exe is runing from something like IO.Path.GetDirectoryName(Reflection.Assembly.GetEntryAssembly.Location) & "\Another.exe"

or

  1. You can embed the another file as a resource into your resources (My project/Resources/Add Resource/Add existing file). Distribute your single exe. And then save that internal resource (My.Resources.YourFileName.Save(..)) to some directory (like IO.Path.GetTempPath) and execute it with Process.Start
PavlinII
  • 1,061
  • 1
  • 7
  • 12