使用winsw实现。
下载地址:winsw
服务安装命令:.\winsw.exe install
服务卸载命令:.\winsw.exe uninstall
目录见下:

xml配置文件:
<service>
<id>frpc-clavescn</id>
<name>frpc-clavescn</name>
<description>frpc-clavescn</description>
<executable>frpc.exe</executable>
<logpath>.\logs</logpath>
<logmode>roll</logmode>
<depend></depend>
<startargument>-c</startargument>
<startargument>frpc-ccn.ini</startargument>
</service>