|
|
@@ -188,6 +188,11 @@ namespace FileWatcher
|
|
|
{
|
|
|
|
|
|
}
|
|
|
+ //每天0点清空文本框的内容
|
|
|
+ if (DateTime.Now.ToString("HH:mm") == "00:00")
|
|
|
+ {
|
|
|
+ richTextBox1.Clear();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void RunTran()
|
|
|
@@ -265,7 +270,7 @@ namespace FileWatcher
|
|
|
try
|
|
|
{
|
|
|
if (!File.Exists(StartPath + Filename + ".xls") ||
|
|
|
- ((new FileInfo(shpFile.FullName).Length / 1024 > 50)&&(File.Exists(StartPath + Filename + ".xls") && (new FileInfo(StartPath + Filename + ".xls").Length / 1024) < 100)))
|
|
|
+ ((new FileInfo(shpFile.FullName).Length / 1024 > 50) && (File.Exists(StartPath + Filename + ".xls") && (new FileInfo(StartPath + Filename + ".xls").Length / 1024) < 100)))
|
|
|
{
|
|
|
Thread.Sleep(1500);
|
|
|
exec(@"D:\FileWatcher\JDF\DTS-JDFData2Excel.exe", @"D:\FileWatcher\JDF\DTS-JDFData2Excel.exe " + shpFile.FullName);
|