{"id":1650,"date":"2018-06-01T17:33:07","date_gmt":"2018-06-02T00:33:07","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1650"},"modified":"2018-06-01T17:33:07","modified_gmt":"2018-06-02T00:33:07","slug":"windows-2016-create-a-service","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1650","title":{"rendered":"Windows 2016 Create a Service"},"content":{"rendered":"<p>To run a program as a service, bring up an Administrator command prompt and:<\/p>\n<blockquote><p>C:\\> SC CREATE &#8220;JGZs Service&#8221; binPath=&#8221;C:\\MyPrograms\\JGZsService.exe&#8221;<\/p><\/blockquote>\n<p>Then you can start the service via the SC command:<\/p>\n<blockquote><p>C:\\> SC START &#8220;JGZs Service&#8221;<\/p><\/blockquote>\n<p>Or from the Services Control Panel applet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To run a program as a service, bring up an Administrator command prompt and: C:\\> SC CREATE &#8220;JGZs Service&#8221; binPath=&#8221;C:\\MyPrograms\\JGZsService.exe&#8221; Then you can start the service via the SC command: C:\\> SC START &#8220;JGZs Service&#8221; Or from the Services Control Panel applet<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[470,36],"class_list":["post-1650","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-service","tag-windows"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1650"}],"version-history":[{"count":1,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1650\/revisions"}],"predecessor-version":[{"id":1651,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1650\/revisions\/1651"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}