Windows: creating a fake service

This is so that I can test my teardown scripts.

sc.exe create DenService binpath= "c:\temp\denservice" DisplayName= "DenService" start= auto

Then to tear down, it is

sc.exe delete DenService
Advertisements