Autor Beitrag
Metrik
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 80

Win XP, Win Vista
C# (VS 2003, #Develop)
BeitragVerfasst: So 13.11.05 14:23 
Hallo

Weiss einer von euch, wie man mit einer console application (C#)
einen Windowsdienst aktiverien, beziehungesweise deaktivieren kann.

Danke im voraus.
Metrik


Moderiert von user profile iconChristian S.: Topic aus WinForms verschoben am Do 08.12.2005 um 16:37
Master_BB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Fr 27.01.06 00:48 
hi,
hm komisch das dir keiner antwortet.
also ich habs zwar noch nie gemacht aber ich bin gerade drüber gestoßen.
kuk mal in den .NET Namespace
System.ServiceProcess auf MSDN
da gibts wohl ne Klasse drin namens ServiceController
mit der sich wohl nen windows service starten, stoppen usw sprich kontrollieren läßt.

in Delphi 2005 ist in den .NET Winform Demo ordner nen beispiel falls du sowas mal suchen solltest.

greetz
Metrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 80

Win XP, Win Vista
C# (VS 2003, #Develop)
BeitragVerfasst: Fr 27.01.06 20:43 
Hallo
DAnke erstmal!
Ich habe das zwar gefunden, aber bei mir giebts das nicht ???
was ist da los?
System.ServiceProcess existiert nicht.

MEtrik
Master_BB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: So 29.01.06 03:46 
hm doch muss existieren auf der website steht sogar ab Framework 1.1
ich kuk nochmal wenn ich richtig zeit hab
Metrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 80

Win XP, Win Vista
C# (VS 2003, #Develop)
BeitragVerfasst: Mo 30.01.06 20:19 
Sorry

Hab net richtig gesschaut <-- war müde
egal hab's auf alle Fälle gefunden.

Metrik