Topic: [QUESTION] about starting exe files with external programs
Hey guys,
I' m writing a program to set up servers, start teeworlds and write your own cfg.
(I know there are some of those things right in this forum but mine has got improved features)
So far so well.
But now I' ve got a problem:
If I want to start a .exe file from my teeworlds directory (teeworlds_srv.exe, teeworlds.exe). It just starts up without loading any sources (what' s actually correct) but I need to know how to start the executables with loading their ressources.
Info: My program is written in C#
Code Snippet (for starting up .exe files):
private void fromSameDirectoryToolStripMenuItem1_Click(object sender, EventArgs e)
{
string currentDir = Environment.CurrentDirectory +"\\teeworlds_srv.exe";
System.Diagnostics.Process.Start(currentDir);
}
Thanks for your (hopefully contemporary) answers. You are asked to post ideas, you needn't post finished codes.
greets
^aka~ Destiny'