set serviceName=N2NService
set serviceFilePath=D:\soft\N2NService\N2NService.exe
set serviceDescription=N2N¿Í»§¶Ë·þÎñ

sc create %serviceName%  BinPath=%serviceFilePath%
sc config %serviceName%    start=auto  
sc description %serviceName%  %serviceDescription%
sc start  %serviceName%
pause