using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
namespace Service
{
public partial class Service1 : ServiceBase
{
public Service1()
{
InitializeComponent();
}
protected override void OnStart(string[] args)//开启服务时要执行的方法
{
}
protected override void OnStop()//停止服务时要执行的方法
{
}
}
}
ProcessStartInfo startInfo = new ProcessStartInfo("IExplore.exe");
Process process1 = new Process();
process1.StartInfo = startInfo;
process1.Start();
欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |