How do i program a hidden executable that runs at startup?

working on a C Server for my new program. Thanks in advance