①注册windows服务
sc create "服务名AAA" binPath= "安装目录\AAA.exe"
displayname= "服务显示名称XXX XXX" start=auto
②删除windows服务
sc delete 服务名称
③命令行执行dll中的函数
rundll32.exe "C:\test\test_dll.dll" fortest //fortest为test_dll.dll中的函数。
②删除windows服务
转载于:https://www.cnblogs.com/mountain2011/p/9025013.html