Hi, I am wondering if it is possible to start a executable with options in vb.net. Basically I can run a game via start>run, and then add the option +restart 1.
So I am running: E:\program files\games\game.exe +restart 1
Everything works fine but I cannot seem to find a way to do it in an application. I have tried to Shell it, use the System.Diagnostics.Process.Start method, and also just create a new Process and start it. Most ways give a file not found exception, some do not. Basically when it works the introduction is skipped. I think the main problem is that I have no idea what this is called, Arguments? EnvironmentVariables? Any ideas or thoughts would be greatly appreciated!
So I am running: E:\program files\games\game.exe +restart 1
Everything works fine but I cannot seem to find a way to do it in an application. I have tried to Shell it, use the System.Diagnostics.Process.Start method, and also just create a new Process and start it. Most ways give a file not found exception, some do not. Basically when it works the introduction is skipped. I think the main problem is that I have no idea what this is called, Arguments? EnvironmentVariables? Any ideas or thoughts would be greatly appreciated!