automatic print

I am trying to find a way to send files to MY printer spooler and having it automatically print without any action from me.

The files will be coming from a server and I am trying to accomplish this with c++.