need help in process.start()
I'm trying to run a game from within c#, problem is c# copies the exe file into its own directory, thus the game files are not present and the exe fails to run alone
here's what i have so far
ProcessStartInfo psi =new ProcessStartInfo(@"C:\program files\tibia\tibia.exe");
Process.Start(psi);
i want c# to run tibia.exe inside C:\program files\tibia instead of copying the executable
Re: need help in process.start()
Why is the c# copying the exe into it's local folder ? Are you adding the game exe as a reference ? It won't do this by default. You shouldn't be adding the exe as a reference anyway if you are doing this.
You'll probably need to set the working directory in ProcessStart to the folder where the target exe is.
Darwen.
Re: need help in process.start()
set the working directory to the exe's directory.