using MESDataExtractQuartz.Service; using Quartz; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MESDataExtractQuartz.Job { public class ExtractMLJob : IJob { public async Task Execute(IJobExecutionContext context) { BaseService.ExtractML(); //向c:\Quartz.txt写入当前时间并换行 System.IO.File.AppendAllText(@"E:\桌面\Quartz.txt", DateTime.Now + Environment.NewLine); } } }