Kann ich eine Konsolenanwendung vom Windows-Dienst in Visual Studio c# auslösen? [geschlossen]C#

Ein Treffpunkt für C#-Programmierer
Guest
 Kann ich eine Konsolenanwendung vom Windows-Dienst in Visual Studio c# auslösen? [geschlossen]

Post by Guest »

Ich möchte die Konsolen-App aus dem Windows-Dienstprojekt auslösen

Code: Select all

   // Set up the ProcessStartInfo
ProcessStartInfo startInfo = new ProcessStartInfo()
{
FileName = consoleAppPath,  // Use cmd.exe to execute the console app
Arguments ="",  // /K keeps the window open after the command is executed
CreateNoWindow = true,  // Make sure the command window is visible
UseShellExecute = false   // Execute via the system shell to allow interaction
};

Process process = Process.Start(startInfo);
es funktioniert nicht

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post