سؤال

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