资源简介

创建一个系统服务,60分钟定时遍历D盘下图片文件夹所有文件,文件名包含指定字符串的文件进行删除

资源截图

代码片段和文件信息

using System;
using System.ServiceProcess;

namespace WindowsService1
{
// Token: 0x02000004 RID: 4
internal static class Program
{
// Token: 0x0600000B RID: 11 RVA: 0x00002330 File Offset: 0x00000530
private static void Main()
{
Servicebase[] services = new Servicebase[]
{
new Service1()
};
Servicebase.Run(services);
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-04-29 16:46  WindowsService1\
     文件         935  2020-04-29 16:45  WindowsService1.sln
     文件         490  2020-04-29 16:45  WindowsService1\app.manifest
     目录           0  2020-04-29 16:46  WindowsService1\bin\
     目录           0  2020-04-29 16:46  WindowsService1\bin\Debug\
     目录           0  2020-04-29 16:46  WindowsService1\obj\
     目录           0  2020-04-29 16:46  WindowsService1\obj\Debug\
     目录           0  2020-04-29 16:46  WindowsService1\obj\Debug\TempPE\
     文件        4765  2020-04-29 16:46  WindowsService1\obj\Debug\WindowsService1.csprojAssemblyReference.cache
     文件         376  2020-04-29 16:45  WindowsService1\Program.cs
     文件        1630  2020-04-29 16:45  WindowsService1\ProjectInstaller.cs
     文件         180  2020-04-29 16:45  WindowsService1\ProjectInstaller.resources
     目录           0  2020-04-29 16:45  WindowsService1\Properties\
     文件        1008  2020-04-29 16:45  WindowsService1\Properties\AssemblyInfo.cs
     文件        2558  2020-04-29 16:45  WindowsService1\Service1.cs
     文件        2327  2020-04-29 16:45  WindowsService1\WindowsService1.csproj

评论

共有 条评论