using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using static System.Net.WebRequestMethods;
using System.Threading;
using System.Configuration;
using System.Data;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
//创建无参的线程
Thread thread1 = new Thread(new ThreadStart(DelFile));
//调用Start方法执行线程
try
{
thread1.Start();
//Console.ReadKey();
}
catch (Exception ex)
{
throw ex;
}
finally
{
thread1.Abort();
}