Skip to content

Instantly share code, notes, and snippets.

View TheCDC's full-sized avatar

Christopher Chen TheCDC

  • Software Engineer at NAVSEA Corona
  • Southern California
View GitHub Profile
@TheCDC
TheCDC / helloworld-win32-service.py
Last active April 14, 2018 20:29 — forked from drmalex07/helloworld-win32-service.py
An example Windows service implemented with pywin32 wrappers. #python #windows-service #pywin32
import win32serviceutil
import win32service
import win32event
import servicemanager
import socket
import time
import logging
logging.basicConfig(
filename = 'c:\\Temp\\hello-service.log',