C:\Users\Administrator>sc create DvsShow binPath= "C:\Program Files (x86)\np\TVS
\Nice\DvsShow.exe" start= auto
\Nice\DvsShow.exe" start= auto
[SC] CreateService 成功
sc create jsb binPath= "C:\windows\system32\notepad.exe" start= auto
sc create 为固定命令 意思是创建
jsb 为自定义的服务名
binpath 为固定格式
=“你需要添加的服务应用程序绝对路径”
start= auto 开机自动启动此服务
注意事项,每个=号之前 一定不要有空格 =号后面一定要有空格