creating win service

C:\Documents and Settings\Administrator> sc create asperacentral binPath= "C:\Program Files\Aspera\Enterprise Server\bin\Debug\asperacentral.exe" DisplayName= "Aspera Central" start= auto

c# stop/terminate/taskkill windows service

in cmd


sc queryex servicename

From the results of this query, jot down the PID.


taskkill /f /pid [PID]