Changing the execution path for a Windows service

SC CONFIG YourServiceName binPath= "C:\SomeDirectory\YourFile.EXE" 
NET STOP YourServiceName 
NET START YourServiceName 
HKLM\SYSTEM\CurrentControlSet\Services\Service_Name 

From here