Call to run another application from an application
-
Hello, I have a WinForm app and want to startup a ConsoleApp using a bat file. I have the bat file and once executed my ConsoleApp works fine. How do I execute (or whatever) that bat file from a WinForms App? Do I use the Application class somehow? Thanks
-
Hello, I have a WinForm app and want to startup a ConsoleApp using a bat file. I have the bat file and once executed my ConsoleApp works fine. How do I execute (or whatever) that bat file from a WinForms App? Do I use the Application class somehow? Thanks
add in: using System.Diagnostics; and then try: Process.Start("path to bat file");
-
add in: using System.Diagnostics; and then try: Process.Start("path to bat file");
okay, i'll try it tmw morning. Thanks!
-
Hello, I have a WinForm app and want to startup a ConsoleApp using a bat file. I have the bat file and once executed my ConsoleApp works fine. How do I execute (or whatever) that bat file from a WinForms App? Do I use the Application class somehow? Thanks