From 2be413978186e69cfb690950959eccfa58367fe0 Mon Sep 17 00:00:00 2001 From: Lev Rusanov <30170278+JDM170@users.noreply.github.com> Date: Fri, 29 Aug 2025 18:46:14 +0700 Subject: [PATCH] Add drag'n'drop to executable Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com> --- Program.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 766de38..49376a7 100644 --- a/Program.cs +++ b/Program.cs @@ -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 { Console.Write("Введите путь к файлу для разделения: ");