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,
 
cyshao said:
Why Windows doesn't allow to launch daemon/service in command line ??

Unix/Linux can simply do that....

START /B yourdaemon.exe
 
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top