資源簡介
文本統計工具,將一個文件夾內部所有的txt文件按照制定的字段進行統計,可以用于軟件日志日常運行統計,使用Excel將統計結果輸出(需要安裝office),并且添加了log4net日志記錄組件使用方法,同時生成多個文件夾記錄日志。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Windows.Forms;
namespace?Statisticstool
{
????static?class?Program
????{
????????///?
????????///?應用程序的主入口點。
????????///?
????????[STAThread]
????????static?void?Main()
????????{
????????????log4net.Config.xmlConfigurator.Configure();
????????????Application.EnableVisualstyles();
????????????Application.SetCompatibleTextRenderingDefault(false);
????????????StatisticsForm?SF?=?new?StatisticsForm();
????????????SF.StartPosition?=?System.Windows.Forms.FormStartPosition.CenterScreen;
????????????Application.Run(SF);
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2148??2018-03-29?11:59??Statisticstool\Statisticstool\App.config
?????文件???????2143??2018-03-29?11:33??Statisticstool\Statisticstool\App.config.bak
?????文件?????275968??2017-03-08?19:25??Statisticstool\Statisticstool\bin\Debug\log4net.dll
?????文件??????11592??2018-04-13?14:18??Statisticstool\Statisticstool\bin\Debug\Statisticstool.vshost.exe
?????文件???????1253??2018-03-29?11:30??Statisticstool\Statisticstool\Common\LogHelper.cs
?????文件??????92854??2016-07-25?14:29??Statisticstool\Statisticstool\i2.ico
?????文件???????7037??2018-03-29?11:59??Statisticstool\Statisticstool\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6830??2018-04-12?08:51??Statisticstool\Statisticstool\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件?????434688??2018-03-29?11:11??Statisticstool\Statisticstool\obj\Debug\Interop.Office.dll
?????文件???????1277??2018-04-13?14:18??Statisticstool\Statisticstool\obj\Debug\Statisticstool.csproj.FileListAbsolute.txt
?????文件???????4608??2018-03-29?09:58??Statisticstool\Statisticstool\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件???????5420??2016-11-28?09:11??Statisticstool\Statisticstool\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6877??2017-01-10?16:20??Statisticstool\Statisticstool\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????400??2016-08-04?16:04??Statisticstool\Statisticstool\obj\x86\Debug\GenerateResource.read.1.tlog
?????文件????????786??2016-08-04?16:04??Statisticstool\Statisticstool\obj\x86\Debug\GenerateResource.write.1.tlog
?????文件???????1704??2016-10-19?10:46??Statisticstool\Statisticstool\obj\x86\Debug\StatisticsCool.csproj.FileListAbsolute.txt
?????文件???????1138??2016-10-19?10:46??Statisticstool\Statisticstool\obj\x86\Debug\StatisticsCool.csproj.ResolveComReference.cache
?????文件???????1919??2017-01-10?16:22??Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.application
?????文件???????3640??2017-01-10?16:22??Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.csproj.FileListAbsolute.txt
?????文件????????984??2017-01-10?16:22??Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.csproj.GenerateResource.Cache
?????文件????????922??2017-01-10?16:22??Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.csproj.ResolveComReference.cache
?????文件?????212480??2017-01-10?16:22??Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.exe
?????文件???????3488??2017-01-10?16:22??Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.exe.manifest
?????文件??????36352??2017-01-10?16:22??Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.pdb
?????文件????????180??2017-01-10?16:22??Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.Properties.Resources.resources
?????文件??????93420??2017-01-10?16:22??Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.StatisticsForm.resources
?????文件???????4608??2017-01-10?14:43??Statisticstool\Statisticstool\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件????????685??2018-03-29?09:30??Statisticstool\Statisticstool\Program.cs
?????文件???????1360??2016-07-22?13:36??Statisticstool\Statisticstool\Properties\AssemblyInfo.cs
?????文件???????2868??2018-03-29?09:56??Statisticstool\Statisticstool\Properties\Resources.Designer.cs
............此處省略27個文件信息
評論
共有 條評論