1

I'm working on a program download manager with options to open the app you've downloaded.

You can download an app and it would be here:
.../programfiles/pub/appmanager/apps/APPHERE.exe
And the main program would be in
.../programfiles/pub/appmanager/MAINFILE.EXE

I need to find a way to start the app. As seen below, i've tried many ways of doing it (system, ect). (also system() only opens apps in the same directory so i could do something there). I can do a separate application, but if someone knows how to implement it into a .NET gui, that would be helpful

I tried:
ShellExecute, System, Create Process
(help me on this one im confused)

EDIT: I need it so that it makes the full directory.

I try something like :
system(app/pxws.exe)
and it wont work

and i tried to merge strings with getmaindirectory and it says not found

Ted Lyngmo
  • 93,841
  • 5
  • 60
  • 108
big boi
  • 47
  • 5

1 Answers1

2

To get a new path that is relative to the EXE of the current process, you can do the following:

Then you can use the new path with whatever API you need.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770