문제

I would like to know if I can create a new process (*.exe) from source code files by clicking in a button? For example.

    private void cmd_Click(object sender, EventArgs e)
    { 
         Application.Create("test.exe");  //Create a new application
     }

And if I can write a code in the new application before it's published?

도움이 되었습니까?

해결책

You can use Process.Start() to initialize a new process.

EDIT: If you want to execute your code on the fly to create a new process, please see http://msdn.microsoft.com/en-us/library/microsoft.csharp.csharpcodeprovider.aspx

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top