This will not work. The problem is that you are trying to show the interface (console) from a Windows service, and the Windows service is not working in the context of any particular user. Starting with Vista and later, Windows Services runs in an isolated session and is prohibited from interacting with the user or the desktop, making it impossible to start.
, , .
- ,
cmd , Windows, . cmd.exe, , , ,
cmd :
ProcessStartInfo processInfo = new ProcessStartInfo
{
WindowStyle = ProcessWindowStyle.Normal,
CreateNoWindow = true,
UseShellExecute = false,
FileName = "cmd.exe",
Arguments = @"/C copy /b Image1.jpg + Archive.rar Image2.jpg"
};
, , :