I want to read modules from .exe - .dll files!
Tell me how to achieve the effect of Drag and Drop in the console?
I want to do this: if you moved the wrong format to display errors that they say the wrong format) and continue.
If you moved the file you need, we work with it ...
This option does not work:
try { if (Path.GetExtension(args[0]) == ".exe" || Path.GetExtension(args[0]) == ".dll") { Console.WriteLine("Working.../"); } else Console.WriteLine("Format is not correct"); } catch { } Console.ReadKey();