-
Notifications
You must be signed in to change notification settings - Fork 7
/
Program.cs
38 lines (33 loc) · 1 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Configuration;
using System.Windows.Forms;
namespace FileCounter
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Logger.Log("-----------------------------------------");
Logger.Log("FileCounter");
Logger.Log("Version {0}", Helper.GetVersion());
Logger.Log("https://www.github.com/surfsky/");
Logger.Log("2024-04");
Logger.Log("-----------------------------------------");
if (args.Length == 0)
Application.Run(new FormMain());
else
{
var cfg = Config.ReadFromAppConfig();
cfg.RootFolder = args[0];
cfg.OutFile = args[1];
cfg.OutLines = Convert.ToInt32(args[2]);
Scanner.Run(cfg);
}
}
}
}