一、实现效果 C#中执行CMD命令、运行bat批处理文件的Winform工程下载 1.1、安装Topshelf编写的程序作为Windows服务 1.2、卸载Topshelf编写的Windows服务程序 1.3、执行命令