run bat file in background

后端 未结 3 1605
醉话见心
醉话见心 2020-12-17 03:27

I want to run a bat file in background. I searched in google and I found some examples using hstart and cmdow. But Isn\'t anyway to do this with windows commands? I really f

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-17 04:11

    It really depends on the programming language and platform you are using.

    In Windows, using the C# language on the .NET platform, it is:

    System.Diagnostics.Process.Start(@"C:\myfile.bat");
    

提交回复
热议问题