Is it possible to embed a bat file in .exe and use it with the Process class?

前端 未结 4 904
轻奢々
轻奢々 2021-01-06 13:25

I\'ve created a batch file that is being used with a Process. I currently just have the application pointing to a directory on my local machine.

Rather than having

4条回答
  •  情话喂你
    2021-01-06 13:41

    of course :

    you should run it but with command.com before

    System.Diagnostics.Process.Start("cmd", "/c c:\test\batchFile.bat");
    

提交回复
热议问题