uberamd
Member
- Joined
- Jan 22, 2007
- Messages
- 9
- Programming Experience
- Beginner
Hey everyone:
I am trying to make a click event that will launch an external application. However, the application has launch parameters that need to be set in order for the application to launch.
The code in question:
Now, the -- -s etc. parameters are required to make the program run, and that is exactly what the shortcut looks like for the application (without the System.Diagnostics.Process.Start("")), so is there a way for me to add those parameters to the exe to make it launch properly?
Edit: I noticed that the app tries to launch but it cannot find files. Reason: much like a shortcut the program needs a "Start In" directory to be set, and Start In would be C:\App. Is there a way to say: Start In C:\App, launch C:\App\Run.exe -- -s Station etc...?
Thanks!
I am trying to make a click event that will launch an external application. However, the application has launch parameters that need to be set in order for the application to launch.
The code in question:
VB.NET:
System.Diagnostics.Process.Start("C:\App\Run.exe -- -s Station subscriptionFeatures=1 gameFeatures=255")
Edit: I noticed that the app tries to launch but it cannot find files. Reason: much like a shortcut the program needs a "Start In" directory to be set, and Start In would be C:\App. Is there a way to say: Start In C:\App, launch C:\App\Run.exe -- -s Station etc...?
Thanks!