Why Windows doesn't allow to launch daemon/service in command line ??

  • Thread starter Thread starter cyshao
  • Start date Start date
C

cyshao

Why Windows doesn't allow to launch daemon/service in command line ??

Unix/Linux can simply do that....
 
humm,

there is a huge difference, in unix IIRC all you have to do to make a
"daemon" is detach the process from the console, in windows it's a litte
different though.
If you want to keep a program resident ( it will run as long as the user is
loged ) just create a thread and terminate the original thread, the program
should continuing runnig and you will get the prompt back

note that I haven;t tested the above but it should work as expected.

cheers,
 
Thanks.
It seems very interesting :-)


Ignacio Machin ( .NET/ C# MVP ) said:
humm,

there is a huge difference, in unix IIRC all you have to do to make a
"daemon" is detach the process from the console, in windows it's a litte
different though.
If you want to keep a program resident ( it will run as long as the user is
loged ) just create a thread and terminate the original thread, the program
should continuing runnig and you will get the prompt back

note that I haven;t tested the above but it should work as expected.

cheers,
 
Back
Top