Im creating a Windows Service and I want to put a dynamic path in the code. But it only accepts static code.
This works:
Process.Start("C:\\Program Files\\Program\\Program.exe", "-socket 12345");
But this doesnt:
String path = "C:\\Program Files\\Program";
String programName = "\\Program.exe";
String fileLocation = path + programName;
Process.Start(fileLocation, "-socket 12345");
Someone can help me?