J J Smithers Jan 26, 2005 #1 How do I execute a batch file from a C# Windows app? (the batch file would be an old style DOS .bat file).
How do I execute a batch file from a C# Windows app? (the batch file would be an old style DOS .bat file).
N Nicholas Paldino [.NET/C# MVP] Jan 26, 2005 #2 J Smithers, Check out the Process class, as it is used to trigger new processes. You would most likely call the static Start method, passing the full path of the batch file you wish to run. Hope this helps.
J Smithers, Check out the Process class, as it is used to trigger new processes. You would most likely call the static Start method, passing the full path of the batch file you wish to run. Hope this helps.