forked from suicvne/smbx-indexgenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
35 lines (32 loc) · 889 Bytes
/
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
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows.Forms;
namespace IndexGenerator
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
if(args.Length == 0)
{
Application.Run(new MainForm("null"));
}
for (int i = 0; i < args.Length; i++)
{
//MessageBox.Show(args[0].ToString());
if (Directory.Exists(args[0].ToString()))
{
Application.Run(new MainForm(args[0].ToString()));
}
}
}
}
}