-
December 23rd, 2011, 03:56 AM
#1
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
-
December 23rd, 2011, 05:03 AM
#2
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.
-
December 24th, 2011, 08:31 PM
#3
Re: need help in process.start()
set the working directory to the exe's directory.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|