Add drag'n'drop to executable

Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2025-08-29 18:46:14 +07:00
parent 867cdaf10b
commit 2be4139781

View File

@@ -70,8 +70,14 @@ namespace TextFileSplitter
} }
} }
static void Main() static void Main(string[] args)
{ {
if (args.Length > 0)
{
foreach (string line in args)
SplitFile(line, neededExt: ".bat");
return;
}
try try
{ {
Console.Write("Введите путь к файлу для разделения: "); Console.Write("Введите путь к файлу для разделения: ");