469,364 Members | 2,398 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,364 developers. It's quick & easy.

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

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

Unix/Linux can simply do that....

Nov 17 '05 #1
4 3509
"cyshao" <ad****@263.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Why Windows doesn't allow to launch daemon/service in command line ??


NET start

Tim
Nov 17 '05 #2
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"cyshao" <ad****@263.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Why Windows doesn't allow to launch daemon/service in command line ??

Unix/Linux can simply do that....

Nov 17 '05 #3
"cyshao" <ad****@263.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Why Windows doesn't allow to launch daemon/service in command line ??

Unix/Linux can simply do that....


START /B yourdaemon.exe

Nov 17 '05 #4
Thanks.
It seems very interesting :-)
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> д
news:OD**************@TK2MSFTNGP10.phx.gbl...
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"cyshao" <ad****@263.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Why Windows doesn't allow to launch daemon/service in command line ??

Unix/Linux can simply do that....


Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Mark Allison | last post: by
1 post views Thread by Peter Rilling | last post: by
7 posts views Thread by IntraRELY | last post: by
7 posts views Thread by Sunil Varma | last post: by
1 post views Thread by Nikola Skoric | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.