so i need a simple function to run the bat file. How to do it?
Take a look at Process.Start
In its simplest form, you can call it that
Process.Start("thebatchfile.bat")
Process.Start("file.bat");
, ;
System.Diagnostics;
Process.Start(@ "C:....\thebatfile.bat" );
, , ( Bat), "()". ( ".... thebatfile", "-s - t 3600" ); . Intellisense .
, , , , Microsoft.VisualBasic.Interaction.Shell.
Microsoft.VisualBasic.Interaction.Shell
Shell("file.bat", AppWinStyle.NormalFocus, True, -1) , , (-1 )
Shell("file.bat", AppWinStyle.NormalFocus, True, -1)
Source: https://habr.com/ru/post/1746592/More articles:Can I use TempData with Response.Redirect? - asp.netembedded developer. the question is how to get rid of the malfunctioning opening of the serial port? - c ++Pagination in a rich domain model - zend-frameworkXmlDataDocument is deprecated, any thoughts on replacing it? - visual-studioAny suggestions for improving this style for BDD / TDD? - c #Is ASP.NET MVC a ViewModel / Dto property attribute that causes modelbinder / view to ignore it? - asp.netHow to select text automatically inside a UIAlertView text field - highlightingSearch Algorithm (with already implemented sorting algorithm) - javaDoctrine + SQL Server Stored Procedures - databaseUnable to customize Explorer Explorer project context menu in VS 2010 - visual-studio-2010All Articles