How can i add some bat files to my project so i will not need them anymore on the hard disk?

前端 未结 6 1571

For example i have this code:

Process proc = new Process();
proc.EnableRaisingEvents = true;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.FileName          


        
6条回答
  •  隐瞒了意图╮
    2020-12-12 06:42

    You can embed your .bat files. When your need them, you check that these files are existed. If no, you copy them from embedded resources to %appdata%\YourAppName and then use.

    How to read embedded resources: How to read embedded resource text file
    Description of embedded resources from the Microsoft: http://support.microsoft.com/kb/319292

提交回复
热议问题