# Swi prolog as service in windows and windows server

**URL:** <https://swi-prolog.discourse.group/t/swi-prolog-as-service-in-windows-and-windows-server/1948>\
**Category:** General\
**Created:** [March 3, 2020, 1:29pm UTC](https://swi-prolog.discourse.group/t/swi-prolog-as-service-in-windows-and-windows-server/1948 "2020-03-03T13:29:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drspro](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/drspro/32/3509_2.png) [@drspro](https://swi-prolog.discourse.group/u/drspro)\
**Post date:** [March 3, 2020, 1:29pm UTC](https://swi-prolog.discourse.group/t/swi-prolog-as-service-in-windows-and-windows-server/1948/1 "2020-03-03T13:29:55Z")

</div>

dear swi prolog forum,

i have created a server-program with swi prolog. now I would like to deploy the server to the windows server machine.  
now i have been trying to create a windows service for auto starting swi prolog at system reboot.

swi prolog should then be started at system boot with 1 parameter .pl file so that it runs the server start script and functions  
is there a good way to do this.

i managed to create a new service pointing to swipl.exe

with

sc create swi4server “c:\swipl64\bin\swipl.exe”

but when i try to start the service it says: fout: 1053

de service heeft de start opdracht niet op juiste wijze beantwoord
